The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Is sed the answer?
.
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
:
Is sed the answer?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
08-29-2007
namishtiwari
Registered User
Join Date: Aug 2007
Location: Bangalore
Posts: 377
You can use any of the two--
cat file1
JANUARY
FEBRUARY
MARCH
APRIL
MAY
JUNE
JULY
AUGUST
SEPTEMBER
OCTOBER
NOVEMBER
DECEMBER
sed
-e '1,6!d' file1
or
sed
-e '7,12d' file1
Thanks
Namish
namishtiwari
View Public Profile
Find all posts by namishtiwari
Find namishtiwari's past nominations received
Find namishtiwari's present nominations given