![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
basename "/path/to/some/file"
;-) - dEvNuL |
|
#3
|
|||
|
|||
|
Thanks devnul for sharing the information.
It really works. Sanjay |
|||
| Google The UNIX and Linux Forums |