The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to filer a line in special condition?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to filer a line in special condition?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
02-10-2009
sunpraveen
Registered User
Join Date: Jan 2009
Location: Pruthvi
Posts: 85
Bhaskar,
Try the below command.
Code:
cut -d '/' -f2 < filename |
sed
-e 's/release_//g' -e 's/.zip//g' | cut -d '_' -f1-3
HTH,
Regards,
Praveen
sunpraveen
View Public Profile
Visit sunpraveen's homepage!
Find all posts by sunpraveen
Find sunpraveen's past nominations received
Find sunpraveen's present nominations given