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 -->
#
2
(
permalink
)
05-04-2008
danmero
丹
Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,439
You should take a look over
man find
Tips: Find directory that contain the file message.jar
Code:
find /usr -type f -name "message.jar" -exec dirname {} \;
Once you read the manual you will understand how to fix the loop.
Success
danmero
View Public Profile
Find all posts by danmero
Find danmero's past nominations received
Find danmero's present nominations given