The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 1 of 1
Search took
0.01
seconds.
Search:
Posts Made By:
indo1144
Forum:
Shell Programming and Scripting
11-16-2015
5
Sed; insert text two lines above match
6,436
Posted By
RudiC
awk ' {B[NR%3]=$0} ...
awk '
{B[NR%3]=$0} # use a circular 3 line buffer (B array) for delayed printing
NR>2 {print B[(NR+1)%3]} # from line three, print line No....
Showing results 1 to 1 of 1
Member Badges and Information Modal
×