Is that possible? Doing wc the straight forward way I have to spend some mental energy to see that the file contains more than 40 million lines:
$ wc -l 20150210.txt
45614736 20150210.txt
I searched around and numfmt showed up, but that is evidently not available on OSX (nor on brew). So is there a simple way to do this on OSX? Thanks.
printf "%'d\n" 45614736
do what you want on OS X? (I don't know how portable that format string is.) – Ticonderogagnumfmt
should be available throghbrew install coreutils
– Uria