![]() |
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 |
| Why is my buffer empty in vi? | cookiebooy | UNIX for Dummies Questions & Answers | 2 | 10-28-2007 05:17 PM |
| Buffer Cache | ALTRUNVRSOFLN | HP-UX | 1 | 04-02-2005 09:43 PM |
| buffer question | lmanchur. | UNIX for Dummies Questions & Answers | 4 | 12-14-2004 10:11 PM |
| buffer the output | collins | High Level Programming | 6 | 11-09-2004 02:57 AM |
| About Buffer | Niko | UNIX for Advanced & Expert Users | 1 | 09-18-2001 03:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using sed buffer
Hi. I have some questions about using sed. I cannot use the hold buffer. For example i want to put first line to the buffer than take second line and append the buffer to the second line.then 3th to the all. It will be like 2->1->3 th lines. Any idea?
|
|
||||
|
Quote:
Code:
sed -n '1,2{h
n
G
p
}
3,$p' file
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|