![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why is my buffer empty in vi? | cookiebooy | UNIX for Dummies Questions & Answers | 2 | 10-28-2007 01:17 PM |
| Buffer Cache | ALTRUNVRSOFLN | HP-UX | 1 | 04-02-2005 06:43 PM |
| buffer question | lmanchur. | UNIX for Dummies Questions & Answers | 4 | 12-14-2004 06:11 PM |
| buffer the output | collins | High Level Programming | 6 | 11-08-2004 10:57 PM |
| About Buffer | Niko | UNIX for Advanced & Expert Users | 1 | 09-18-2001 12:49 AM |
|
|
LinkBack | Thread Tools | 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?
|
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Code:
sed -n '1,2{h
n
G
p
}
3,$p' file
|
|||
| Google UNIX.COM |