[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wc -l is not working the way it should
From: |
Rahman, Syed A |
Subject: |
wc -l is not working the way it should |
Date: |
Wed, 16 Jan 2008 15:09:33 -0500 |
Hi,
The wc seems not working correctly, say for example
wc -l filename | cut -c1-8
should only give the lines, but this your version of wc, behaves
differently. for small size files it does not reserve first 8 colums for
size so get the file name as well
All others give this
$ wc -l test.ksh | cut -c1-8
14
Your version gives this----
$ wc -l test.ksh | cut -c1-8
14 test.
thanks
Syed
- wc -l is not working the way it should,
Rahman, Syed A <=