in reply to Insert Text which is Read from the Line Above
Change to single quotes for Linux.perl -ane "@F<3 and @hdr=@F,next; print qq|@hdr $_|" data1.txt
"Think of how stupid the average person is, and realize half of them are stupider than that." - George Carlin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Insert Text which is Read from the Line Above
by ExReg (Priest) on Feb 26, 2016 at 20:54 UTC | |
|
Re^2: Insert Text which is Read from the Line Above
by jlb333333 (Novice) on Feb 27, 2016 at 08:15 UTC | |
by poj (Abbot) on Feb 27, 2016 at 08:42 UTC | |
by jlb333333 (Novice) on Feb 27, 2016 at 10:28 UTC | |
by poj (Abbot) on Feb 27, 2016 at 10:34 UTC | |
by jlb333333 (Novice) on Feb 27, 2016 at 16:50 UTC | |
|