![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| repeat pattern without using excel | ajp7701 | Shell Programming and Scripting | 3 | 03-15-2008 12:28 AM |
| to copy and repeat | falcondown01 | Shell Programming and Scripting | 4 | 09-07-2007 08:15 PM |
| How to search a pattern inside a zipped file ie (.gz file) with out unzipping it | senraj01 | Shell Programming and Scripting | 2 | 04-26-2006 04:32 AM |
| Search file for pattern and grab some lines before pattern | frustrated1 | Shell Programming and Scripting | 2 | 12-22-2005 03:41 PM |
| Repeat Commands | dereckbc | UNIX for Dummies Questions & Answers | 6 | 01-04-2005 11:15 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a datafile contain hundreds of lines:
line1 1 2 line4 ================== line1 4 2 line4 ================== line1 3 1 line4 =================== ....... I want data to be: line1 line4 ================= line1 line4 ================= line1 line4 How can I do this? Please help! |
|
||||
|
Code:
sed -n "/./{p;n;n;n;p;n;p;n;p;}" file
|
| Sponsored Links | ||
|
|