in reply to Re: one liner - open file and read
in thread one liner - open file and read

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.

Replies are listed 'Best First'.
Re^3: one liner - open file and read
by JavaFan (Canon) on Oct 07, 2010 at 20:52 UTC
    I know what wc is capable of.

    Hence the redirect.

    Run it with and without the redirect, and compare it to the output of the OP.

      Thank you for that! I didn't know about that trick.