![]() |
|
|
|
|
|||||||
| 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 |
| delete string in a text file leaving the first occurrence | gopskrish | UNIX for Dummies Questions & Answers | 12 | 10-31-2006 07:32 AM |
| Searching directory for file that contains some text. | LordJezo | UNIX for Dummies Questions & Answers | 4 | 04-04-2006 05:58 PM |
| searching each file in a directory for text | jim majors | Shell Programming and Scripting | 2 | 03-23-2006 05:29 PM |
| Searching for directory | Enigma23 | Shell Programming and Scripting | 8 | 04-08-2005 06:31 PM |
| directory searching | st00pid_llama | Shell Programming and Scripting | 2 | 05-10-2004 04:21 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello there !
I am in my current working directory, and i want search a file in "dev" directory which is under root(/), but i donot want leave my current working directory. is it possible to find file like that ? let us say i am in /home/bin/user/malik/abid directory and i want find a file "testing" which is in "bin" directory. what should i give command on my pwd to fine file in bin directory. any suggestion will be appriciated. Thanks Abid Malik |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Read the man page on the find command. No matter where you are, you can find files in other directories (searching all sub-directories)
NAME find - find files SYNOPSIS find path... expression DESCRIPTION The find utility recursively descends the directory hierar- chy for each path seeking files that match a Boolean expres- sion written in the primaries given below. |
|
#3
|
|||
|
|||
|
Try
find /bin -name testing 2>/dev/null |
|||
| Google The UNIX and Linux Forums |