![]() |
|
|
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 |
| get filename from absolute path in batch program | zedex | Windows & DOS: Issues & Discussions | 1 | 12-20-2008 04:26 AM |
| Comparing filename-substrings and remove unnecessary files | cypher82 | UNIX for Dummies Questions & Answers | 5 | 06-06-2008 05:26 AM |
| Moving files by splitting the path embedded in the filename | rahulrathod | UNIX for Dummies Questions & Answers | 7 | 04-14-2005 03:43 AM |
| remove filename prefix | peter.herlihy | UNIX for Dummies Questions & Answers | 2 | 07-11-2002 02:08 AM |
| remove pound sign from filename | kristy | UNIX for Dummies Questions & Answers | 4 | 02-13-2002 03:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Remove path from filename
In a foreach loop I end up with $file containing the filename INCLUDING the whole path. I want this reduced to just the filename, but I can't seem to remember how I did it some years back. I am sure I can do it with "sed", but I am pretty sure I have seen a simpler command.
Anyone? borgeh |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|