![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| concatenate and display 2 lines as 1 with a condition for 2 line ? | vithala | Shell Programming and Scripting | 7 | 07-11-2008 01:01 AM |
| Need solution concatenate and display 2 lines as 1 with a condition for 2 line ? | vithala | UNIX for Advanced & Expert Users | 1 | 07-10-2008 01:27 PM |
| How to enter if-then condition on command prompt/line ? | mpc8250 | Shell Programming and Scripting | 3 | 02-10-2008 12:27 PM |
| ROX-Filer 2.7.1 (Stable branch) | iBot | Software Releases - RSS News | 0 | 01-09-2008 06:30 AM |
| [OpenServer 5]Line Printing and special character (é @) | tankd | UNIX for Dummies Questions & Answers | 5 | 08-02-2007 03:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to filer a line in special condition?
Hi,
I hava log file which has the following output : Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_1_20090210.zip Created RELEASE in dist/filename_release_1_3_20090210.zip Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_4_20090210.zip Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_0_20090210.zip for special sorting purpuse I want each of the line to be filtered like /filename_1_0 /filename_1_1 /filename_1_3 /filename_1_0 /filename_1_0 /filename_1_4 /filename_1_0 /filename_1_0 /filename_1_0 /filename_1_0 i.e the "release" word to be filtered out and version is to be attached woth the file name. As I am new to the filtering part of UNIX could not make out what to use any sed/awk/perl ..Please help. Waiting for an aspiring response. Thank you. |
|
||||
|
Its ok...but how to remove on of the "release" word and add the version and remove the time stamp to flitered output could u plz gelp on this more? |
|
||||
|
Excellent sir ...but still it is not removing the "release" word else is ok. Waiting for an aspiring response from your side.
|
|
||||
|
HI Praveen,
Superb!! Its working fine. Thanks for this nice help. Regards, Bhaskar |
| Sponsored Links | ||
|
|