Reg:how to search a file recursivly


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Reg:how to search a file recursivly
# 1  
Old 01-10-2008
Reg:how to search a file recursivly

Hi Guys,

can any help to write a script to search for a file Recursively and i need to write a path of the file into some other file.

May be upto 5 directories.

Regards,
Rajanikanth.
# 2  
Old 01-10-2008
Use the the find command and redirect the output to your file.

Regards
# 3  
Old 01-10-2008
Actuly i d'not know unix.....just i am leaner...
can oyu pls post it...
# 4  
Old 01-14-2008
Hammer & Screwdriver try this ..

find / -name filename -print > logfile 2>/dev/null

This will find all the files with name as filename from / and will write the output to logfile.

Hope this will help u ..Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Recursivly rename folders removing characters as required

HI guys here's hoping some on pout the can help I have a large library of epub and mobi file creates some what by calibre. Output of tree listing below I would like to recursively rename the directories removing the brackets and numbers I have been scratching my head over... (4 Replies)
Discussion started by: dunryc
4 Replies

2. Shell Programming and Scripting

Problems with reg.-expressions in a awk-search-pattern

Hi, i have some problems with regular expressions in a awk search pattern. what i want to do: i want to calculate the mean-value in the time from 00:00 to 06:00 how my data looks like: .... 04/01/13-01:40 670992 54802 80711 116460 156177 04/01/13-01:50 703725 60150 85498 ... (3 Replies)
Discussion started by: IMPe
3 Replies

3. Linux

reg-linked file

How to check this linked path, and the folder what is contains.. as i am new to linux, pls assist me lrwxrwxrwx 1 root root 10 Jun 24 2008 mail -> spool/mail/ Thanks in advance, (1 Reply)
Discussion started by: kurva
1 Replies

4. Shell Programming and Scripting

Rename files recursivly in specified directories

Hi, This is what I would like to do. 1. Find all directories named "ByHost" in a specified directory 2. Rename all .plist files inside "ByHost" directories This is the way I have been able to do it so far. #!/bin/sh # # Rename ByHost files # # Thomas Berglund, 13.07.08 # Get the... (2 Replies)
Discussion started by: Thomas Berglund
2 Replies

5. Shell Programming and Scripting

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (8 Replies)
Discussion started by: Rajanikanth
8 Replies

6. Linux

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (1 Reply)
Discussion started by: Rajanikanth
1 Replies

7. UNIX for Dummies Questions & Answers

Reg: Search for a directory

-------------------------------------------------------------------------------- Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n... (1 Reply)
Discussion started by: Rajanikanth
1 Replies

8. Shell Programming and Scripting

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search whether doc... (0 Replies)
Discussion started by: Rajanikanth
0 Replies

9. UNIX for Advanced & Expert Users

Reg: Search for a directory

Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has n number of std's. Each std has n number of re's. My requirement is to write a UNIX script that would search... (0 Replies)
Discussion started by: Rajanikanth
0 Replies

10. Shell Programming and Scripting

Command to recursivly search all html files below the current

hi! i need a command to recursivly search all html files below the current directory for the string "ABCDE". that´s very important to me, thanx!!! (3 Replies)
Discussion started by: inane
3 Replies
Login or Register to Ask a Question