bug-gnu-utils
[Top][All Lists]
Advanced

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

grep and -


From: zhaoyj
Subject: grep and -
Date: Wed, 14 Dec 2005 13:57:38 +0800

something wrong with "-"?????

my OS : redhat fedora 2

address@hidden root]# grep -V
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



address@hidden root]# cat test
dtedd:sdfasd
dtedd-3:sdaf
dtedd-9:sdf
dtedd-323:asdf
address@hidden root]# grep "dtedd" test
dtedd:sdfasd
dtedd-3:sdaf
dtedd-9:sdf
dtedd-323:asdf
address@hidden root]# grep -w "dtedd" test
dtedd:sdfasd
dtedd-3:sdaf
dtedd-9:sdf
dtedd-323:asdf
address@hidden root]# grep -w 'dtedd' test
dtedd:sdfasd
dtedd-3:sdaf
dtedd-9:sdf
dtedd-323:asdf
address@hidden root]#

reply via email to

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