Don't re-direct; wc accepts a filename argument, or a list of filenames.
wc -l in.file # also check out when multiple files match the pattern ... wc *.dat
As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In reply to Re^2: one liner - open file and read
by TomDLux
in thread one liner - open file and read
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |