[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6356: How to avoid showing the 'total' line with wc -l?
From: |
Davide Brini |
Subject: |
bug#6356: How to avoid showing the 'total' line with wc -l? |
Date: |
Sat, 5 Jun 2010 18:41:44 +0100 |
User-agent: |
KMail/1.12.4 (Linux/2.6.32-gentoo-r10; KDE/4.3.5; x86_64; ; ) |
On Saturday 05 June 2010, Peng Yu wrote:
> When I use wc -l *.txt, it show the total number of lines at the end.
> I don't necessary need this last line. Is there a way to disable it?
It's dictated by POSIX. You can try
wc -l *.txt | head -n -1
--
D.