![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script help to eliminate files of todays date | richM | Shell Programming and Scripting | 2 | 04-20-2009 04:40 AM |
| Combine fields and eliminate white space | ski | UNIX for Dummies Questions & Answers | 2 | 07-25-2008 01:03 PM |
| Cannot redirect ouput????? | minifish | Shell Programming and Scripting | 3 | 02-20-2008 12:15 PM |
| Eliminate variable checking in a script | BMetelsky | Shell Programming and Scripting | 8 | 12-04-2007 10:59 AM |
| Red Hat - ouput capture | juxtaman | UNIX for Dummies Questions & Answers | 3 | 04-10-2003 11:31 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi Experts,
I have a file as given below and want to filter out the filenames in it , by deleting left and right filds and to have the fllenames (There are spaces in the filename), Code:
Sun Jan 11 11:20:10 2009 1 0 /home/output/file2311_recent.list user1 user2 0 done Sun Jan 11 11:20:10 2009 1 0 /home/output/file2312 jan recent.list user1 user2 0 done Sun Jan 11 11:20:10 2009 1 0 /home/output/Output2313 feb recent.text user1 user2 0 done I want to eliminate first 7 field from left side , and 4 fields from right side , and to get the output . Is there anything available with scripting , sed awk ? Output should be: Code:
/home/output/file2311_recent.list /home/output/file2312 jan recent.list /home/output/Output2313 feb recent.text Last edited by vgersh99; 10-21-2009 at 07:28 PM.. Reason: code tags, please. |
| Bookmarks |
| Tags |
| scripting, sed awk shell |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|