A quick one-liner for counting the number of characters in a given field for each line in an ASCII file.
for i in `cat source.txt`; do echo $i | awk {'print length($1)}' >> counts.txt
Full-Stack software architect/engineer (currently working in the Big Data space), drummer, motorcyclist, and artist.
A quick one-liner for counting the number of characters in a given field for each line in an ASCII file.
for i in `cat source.txt`; do echo $i | awk {'print length($1)}' >> counts.txt