The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find the path of a file? wrapster Shell Programming and Scripting 3 03-26-2008 10:31 AM
command to find the path of a file abhilashnair UNIX for Dummies Questions & Answers 3 02-17-2008 07:15 PM
to find the file with full path surjyap Shell Programming and Scripting 5 01-18-2008 03:26 PM
to find a file in set of directories jazz High Level Programming 3 11-16-2005 09:36 AM
How would I make a find command NOT show the path of a file? LordJezo Shell Programming and Scripting 1 10-01-2004 06:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-22-2007
pranavagarwal pranavagarwal is offline
Registered User
  
 

Join Date: Oct 2007
Location: India
Posts: 29
Exclamation Find a file in sub-directories.. o/p just the path

Hello All,
I am somehow stumped with this ting.
'Find' will sure show me.. but I want only thepath of all the occurences of the file in any of the sub-dirs..

Any help will be sincerely appreciated.
thanx!
  #2 (permalink)  
Old 11-22-2007
pranavagarwal pranavagarwal is offline
Registered User
  
 

Join Date: Oct 2007
Location: India
Posts: 29
Thumbs up Oops! lack of presence of mind!

I was unnecesarily bugging you all..
Code:
find /path -name <filename>
did the trick!

anyways.. thanx to all..
  #3 (permalink)  
Old 11-22-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,847
Code:
sed 's [^/]*$  ' <(find . -type f)
Edit: it seams I did not understand the question
  #4 (permalink)  
Old 11-23-2007
pranavagarwal pranavagarwal is offline
Registered User
  
 

Join Date: Oct 2007
Location: India
Posts: 29
Lightbulb Oops! lack of presence of mind!

I was unnecesarily bugging you all..
Code:
find /path -name <filename>
did the trick!

anyways.. thanx to all..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0