|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
need help on shell programming
btw im a newbie to shell scripting ...
how to write a script that can actually list out the file u searched throughout the directory and its sub directories for example im in /ex1/users/adrian/ im searching a file name 'abc' using the command : search abc how could i do the search through the directories within /ex1/users/adrian/ and its sub directories like /ex1/users/adrian/tmp/ and it output should come out like this $search abc /ex1/users/adrian/troubleabc /ex1/users/adrian/abcbook /ex1/users/adrian/kkk.abc /ex1/users/adrian/tmp/abcxxx /ex1/users/adrian/tmp/shoutabc . . . . . |
|
#2
|
||||
|
||||
|
Quote:
First of all, I think this should be moved to the "Scripts" forum. Second, this sounds like homework so please do not expect to have people here write the script for you. Third, from the command prompt, type "man find". Regards, jlk |
|
#3
|
|||
|
|||
|
Look up in the manual for find command
You can use it as - $ find path -name "abc" -type f -print where path is the directory/path where you like to locate the files |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > need help on shell programming |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|