Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This example

  for $file in *;do wc -l $file;done
could be reduced to

  for $file in *; { wc -c $file ;}
in some POSIX-like shells.

Is the for loop even necessary?

    echo wc -l * |sh 
But...

http://www.in-ulm.de/~mascheck/various/argmax/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: