in reply to How do I gather and output info about a file's contents?
Reproduce the output from wc using as few chars as possible. (634)
Update: Put the space back.
wc readme.txt 644 5611 36120 readme.txt perl -anlwe"$w+=@F;$c+=length}{print qq[\t$. $w ${\($c+$.*2)} $ARGV]" +readme.txt 644 5611 36120 readme.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I gather and output info about a file's contents? (Golf)
by Corion (Patriarch) on Oct 13, 2007 at 14:27 UTC |