The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to negate grep result?
.
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
:
How to negate grep result?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
05-04-2008
mmdawg
Registered User
Join Date: May 2008
Posts: 3
How to negate grep result?
Here is my script so far:
set dirs = ` find . -name "message.jar" 2> /dev/null | cut -d "/" -f 2 ` | uniq
foreach dir ( $dirs )
if (grep $dir/* someText==null) --> how do I write this in script?
print $dir
end
end
mmdawg
View Public Profile
Find all posts by mmdawg
Find mmdawg's past nominations received
Find mmdawg's present nominations given