![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 4 Weeks Ago 09:37 AM |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 03:47 AM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 03:38 PM |
| how to find a file in UNIX without find command? | bluo | Shell Programming and Scripting | 3 | 09-24-2003 08:47 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
find command
I need help with the find command. I want to find all files that contain 'SCHD'.
Can anyone help me? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
try this comand
find / -name "SCHD*" -type f -print |
|
#3
|
|||
|
|||
|
SCHD will not be in the name of the file. It will be in the contents. Is there any way to do this?
|
|
#4
|
||||
|
||||
|
find / -type f | xargs grep -l SCHD
|
|
#5
|
||||
|
||||
|
Quote:
find / -name '*.*' - exec grep 'SCHD' {} \; -print |
|
#6
|
||||
|
||||
|
Or, if that's too slow or you run into "No such file or directory" errors, try this:
Code:
find / -type f | while read file; do grep -l SCHD "$file" done |
|
#7
|
|||
|
|||
|
Thanks!
Thanks for all your help! I got the information that needed.
|
|||
| Google The UNIX and Linux Forums |