6 WC Command Examples to Count Number of Lines, Words, Characters in Linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

4 Responses

  1. Sunny says:

    cat filename.txt | grep -v “saerch” | sed -n ‘ $ p ‘

  2. Saransh says:

    If u don’t want to print to print the last line

    Go for grep -v option

    can try grep -v ‘^6′

  3. Jayanto says:

    When I do a wc -l in a directory then the output is something like –
    1 File1.txt
    2 File2.txt
    3 File3.txt
    6 Total

    I do not want to display the last Total. How can we do that? Any insights..!

  4. SRI says:

    Please tell me how to display number of words in each line by using wc command?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>