chewtoy - chew file; spit csv
| In Brief | Paste this into chewtoy, and chmod +x chewtoy... more |
| Language | (Ba)sh |
# '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