LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 05-09-2008, 02:08 PM   #1
rakesh.tandur
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Rep: Reputation: 0
getting the path of the file


Hello,

What is the command to get the folder path of the file.

If i use the below command, it list the folder path with the filename, but we need only the folder path not the file name in it.

find . -name 'FileName'

Any suggestions are appreciated. Thanks in advance.

Regards
-Rakesh.
 
Old 05-09-2008, 02:28 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...e-file-641122/
 
  


Closed 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the absolute path of file using file descriptor. appas Programming 7 01-19-2012 11:47 AM
Getting file path from FILE pointer in C barisdemiray Programming 3 10-22-2004 12:58 AM
PATH file location corbis_demon Linux - Newbie 1 10-08-2004 05:34 AM
connect file to path gyue Linux - General 2 11-06-2003 06:27 AM
PATH variable file pongsu Linux - General 2 09-25-2003 04:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration