The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Grep for a negative number
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Grep for a negative number
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-02-2009
pludi
Moderator
Join Date: Dec 2008
Location: .at
Posts: 1,890
grep thinks the '-' starts an option and tries to interpret it. Try escaping it, eg. grep '\-3' *.*
pludi
View Public Profile
Find all posts by pludi
Find pludi's past nominations received
Find pludi's present nominations given