![]() |
|
|
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 |
| How to remove a newline character at the end of filename | amio | Shell Programming and Scripting | 2 | 02-10-2009 05:18 AM |
| display filename with date | pstanand | Shell Programming and Scripting | 1 | 03-28-2008 08:35 AM |
| special character on Filename.. help!!!urgent | genzbeat | HP-UX | 1 | 01-18-2008 03:55 PM |
| Filename character changes | xramm | Shell Programming and Scripting | 5 | 05-30-2007 11:34 AM |
| Display filename and wc stats | asianmike | UNIX for Dummies Questions & Answers | 1 | 04-12-2006 05:51 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Display last 8 character of filename
I would like to display the last 8 characters of the filenames for filenames of different lengths.
I can delete the last 8 characters with sed but dont know how to only show the last 8 characters. The filenames are something like; afxH340800340000 afxH30800340021 afxR3080034002122 I have used; echo $file | sed -e 's/........$//g' Any help is greatly apprecaited. Cheers Ben |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|