![]() |
|
|
|
|
|||||||
| 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 |
| ksh pattern matching | ripat | Shell Programming and Scripting | 5 | 02-10-2008 12:44 PM |
| help need for pattern matching | HIMANI | UNIX for Dummies Questions & Answers | 10 | 01-22-2008 03:30 AM |
| pattern matching | mercuryshipzz | Shell Programming and Scripting | 4 | 01-14-2008 07:01 PM |
| pattern matching in an if-then | lumix | Shell Programming and Scripting | 4 | 12-14-2007 12:25 PM |
| Pattern matching sed | leemjesse | Shell Programming and Scripting | 3 | 03-23-2005 12:06 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Pattern Matching
Hi,
From a list of directory paths, I need to get only what appears after the last "/" in the path, for example: From /usr/bin/ftp, I only want "ftp". From /var/apache/htdocs/project/index.html, I only want "index.html". Hope this makes sense as it's really been bugging me, I'm guessing there is an awk or sed command that can be used, but I can't find it! Ta. |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|