![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Grep help | flood | Shell Programming and Scripting | 3 | 06-05-2008 10:14 PM |
| Grep | Aejaz | UNIX for Advanced & Expert Users | 3 | 04-30-2008 04:10 AM |
| grep | dineshr85 | Shell Programming and Scripting | 1 | 10-10-2007 01:52 AM |
| how to exclude the GREP command from GREP | yamsin789 | UNIX for Advanced & Expert Users | 2 | 10-04-2007 11:59 PM |
| Make grep -c display like grep -n? | Jerrad | Shell Programming and Scripting | 2 | 08-24-2006 09:20 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
grep in /
Hello,
I'd like to make a grep over all files between / directory and all directories between recursively. When I made grep 'myexpression' / or grep 'myexpression' * or something like this it returns me nothing while I know there's at least one file containing my expression Can someone help me ??? Many thanks in advance |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Did you try this ?
Code:
grep -r 'myexpression' / |
|
#3
|
|||
|
|||
|
sorry I tried but -r is not a valid option for grep
|
|
#4
|
||||
|
||||
|
The '-r' option probably is available only on GNU grep. Try this:
Code:
find / -type f -exec grep 'myexpression' {} \;
|
|
#5
|
|||
|
|||
|
(if you have permission to read the file)
|
|||
| Google The UNIX and Linux Forums |