cat junk.txt | ruby -ne "print $_"
or something cooler
cat junk.txt | ruby -ne "print $_ if $_.size < 20"
Ruby is a programmers swiss army knife.
Saved us from having to either learn regex or write awk :-)
attempts to solve technical problems
cat junk.txt | ruby -ne "print $_"
cat junk.txt | ruby -ne "print $_ if $_.size < 20"
0 comments:
Post a Comment