The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
to find the file with full path surjyap Shell Programming and Scripting 5 01-18-2008 12:26 PM
getting full path from relative path polypus Shell Programming and Scripting 4 03-25-2007 09:08 AM
list all files with full path of the file Sowser UNIX for Advanced & Expert Users 4 02-13-2007 02:46 PM
vi - replacing a relative path with absolute path in a file Yinzer955i UNIX for Dummies Questions & Answers 2 09-07-2006 08:47 AM
process executable file full path xtrix UNIX for Advanced & Expert Users 3 10-11-2004 01:28 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-02-2001
sanjay92
Guest
 

Posts: n/a
Question extract only file name from full path file name

What is the smartest way to just extract file name from a full path name.
e.g. if I have
/usr/sanjay/bin/file_name.c

I want only file_name.c

Sanjay
Forum Sponsor
  #2  
Old 10-02-2001
Registered User
 

Join Date: Oct 2001
Location: San Francisco
Posts: 27
basename "/path/to/some/file"

;-)

- dEvNuL
  #3  
Old 10-02-2001
sanjay92
Guest
 

Posts: n/a
Wink

Thanks devnul for sharing the information.

It really works.

Sanjay
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0