The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Get line1 and line4 in a repeat pattern file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Get line1 and line4 in a repeat pattern file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
10-25-2006
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Code:
sed -n "/./{p;n;n;n;p;n;p;n;p;}" file
anbu23
View Public Profile
Find all posts by anbu23