License Public Domain
Lines 2
Keywords
/proc (1)
Permissions
Owner: Steven
Viewable by Everyone
Editable by All Siafoo Users
Hide
Meet people who work on similar things as you – get help if you need it Join Siafoo Now or Learn More

chewtoy - chew file; spit csv Atom Feed 0

In Brief Paste this into chewtoy, and chmod +x chewtoy... more
# 's
1#/bin/sh
2(unset IFS; unset k; unset j; unset i;for i in `cut -d : $1 -f 1`; do j="$i, $j"; done; k=`echo $j|wc -m`;echo $j|colrm `expr $k "-" 1` $k;unset j; IFS=$'\n'; for i in `IFS=$' \t\n'; cut -d : $1 -f 2`; do j="$i, $j"; done; k=`echo $j|wc -m`;echo $j|colrm `expr $k "-" 2` $k)

INSTALL

Paste this into chewtoy, and chmod +x chewtoy

USAGE

./chewtoy file

Comments

over 6 years ago (14 Feb 2010 at 01:38 AM) by Steven
Pretty sure a lot those "unset" are useless in a script.