![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help-prompt for path and take this as input in find command | bsandeep_80 | UNIX for Advanced & Expert Users | 7 | 01-21-2009 04:49 PM |
| create PATH from find command output | rein | UNIX for Dummies Questions & Answers | 3 | 04-01-2008 08:35 AM |
| how to find the path of a file? | wrapster | Shell Programming and Scripting | 3 | 03-26-2008 10:31 AM |
| Find a file in sub-directories.. o/p just the path | pranavagarwal | Shell Programming and Scripting | 3 | 11-23-2007 01:50 AM |
| How would I make a find command NOT show the path of a file? | LordJezo | Shell Programming and Scripting | 1 | 10-01-2004 07:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
command to find the path of a file
What is the command to find the path of a file if we know the file name and the root directory where the file resides..
For eg. if a file abc.dat resides in /home/mydir/myfiles/. I am looking for a command which will be fired from / directory, takes abc.dat as input and display the path of abc.dat as output |
|
||||
|
It works. But it also returns many other lines not at all related to the filename which I am giving as input
for eg: if i give command as find /home -name abc.dat it returns the output as given below. Many unwanted file names in the output find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type /home/mydir/myfiles/abc.dat - (This is the only info what I want ) find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type find: <filename>: Value too large to be stored in data type In the above output all lines except one which i have indicated are unwanted. <filename> does not even match or has any similarity with abc.dat Why is it so? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|