[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Query on wc
From: |
Eric Blake |
Subject: |
Re: Query on wc |
Date: |
Wed, 09 Aug 2006 06:32:28 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Vinu, Uma on 8/8/2006 9:59 PM:
>
> ls -l <Dir> | grep core | wc -l ----- The directory doesn't has the
> core file.
>
> But wc -l returns a blank line instead of a 0. I need the output to be
> 0.
It worked for me:
$ ls core
ls: core: No such file or directory
$ ls -l . | grep core | wc -l
0
>
> Why does this happen? Your reply will be of great help.
Perhaps you need to upgrade? The latest stable version of coreutils is 5.97.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE2dXc84KuGfSFAYARAihAAKC1rNBbRgXglRpkfhowqje60W5EkgCeL/qV
6zRcjz9irH8ampAJIXMjrSs=
=izFY
-----END PGP SIGNATURE-----