paleogryph
MIS
RH8 Linux using bash.
Is it possible to sed a line so that it "Shift-j"'s the end of the line?
sed 's/$/shift-j/' or something like that.
In other words, with vi I could "shift-j" a line and pull the line below up and add it to the current line. I'm greping lines containing BLOCK, but I need to also grab the 3 lines below and concatenate them all into one line.
Is this possible?
>Think for yourself<
...or someone else will do it for you.
Is it possible to sed a line so that it "Shift-j"'s the end of the line?
sed 's/$/shift-j/' or something like that.
In other words, with vi I could "shift-j" a line and pull the line below up and add it to the current line. I'm greping lines containing BLOCK, but I need to also grab the 3 lines below and concatenate them all into one line.
Is this possible?
>Think for yourself<
...or someone else will do it for you.