bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wc can not count correctly


From: wyoming
Subject: wc can not count correctly
Date: Tue, 11 Sep 2001 17:44:50 +0800 (CST)

i write a file name usertest as follows,

#!/bin/sh
cnt=`ps -elf | grep usertest | grep -v grep | wc -l`
echo $cnt

every time i run it, the number it shows bigger that 2.
but if i change the file into

#!/bin/sh
ps -elf | grep usertest | grep -v grep | wc -l

it just show ONE line.

i try the same process in IRIX, it works well. i do not know why!!!






      VCD5元,DVD10元    百元数码相机荟萃展卖                  加入书友会获精美礼品         


reply via email to

[Prev in Thread] Current Thread [Next in Thread]