Difference between revisions of "Wc"
From Linuxintro
imported>ThorstenStaerk (Created page with "wc is a command to output the '''w'''ord '''c'''ount. <code>wc -l</code> counts the number of lines that are output. wc is typically used with piping like this: ls -...") |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
[[wc]] is a [[command]] to output the '''w'''ord '''c'''ount. <code>wc -l</code> counts the number of lines that are output. wc is typically used with [[piping]] like this: | [[wc]] is a [[command]] to output the '''w'''ord '''c'''ount. <code>wc -l</code> counts the number of lines that are output. wc is typically used with [[piping]] like this: | ||
− | ls - | + | ls -1 | wc -l |
Counts how many files exist. | Counts how many files exist. |