Forrest logo
back to context overview

wc

List of commands for wc:

  • wc:tldr:01a1e wc: Count characters in file (taking multi-byte character sets into account).
    $ wc -m ${filename}
    try on your machine
    explain this command
  • wc:tldr:246ce wc: Count words in file.
    $ wc -w ${filename}
    try on your machine
    explain this command
  • wc:tldr:3f9f7 wc: Count all words in a file.
    $ wc --words ${filename}
    try on your machine
    explain this command
  • wc:tldr:48f53 wc: Count all bytes in a file.
    $ wc --bytes ${filename}
    try on your machine
    explain this command
  • wc:tldr:7a448 wc: Count all lines, words and bytes from `stdin`.
    $ ${find -} | wc
    try on your machine
    explain this command
  • wc:tldr:b815a wc: Count characters (bytes) in file.
    $ wc -c ${filename}
    try on your machine
    explain this command
  • wc:tldr:c1639 wc: Count lines in file.
    $ wc -l ${filename}
    try on your machine
    explain this command
  • wc:tldr:d80fd wc: Count all characters in a file (taking multi-byte characters into account).
    $ wc --chars ${filename}
    try on your machine
    explain this command
  • wc:tldr:fa727 wc: Count all lines in a file.
    $ wc --lines ${filename}
    try on your machine
    explain this command
  • wc:tldr:faf42 wc: Count the length of the longest line in number of characters.
    $ wc --max-line-length ${filename}
    try on your machine
    explain this command
back to context overview