On 10/30/07, mlondon mlondon@sprynet.com wrote:
I would like to be able to FIND a string and move it up or down in the file.
Pipe the document through:
perl -ne 'BEGIN{$"=undef}push(@hold, $_) if /^NOTE/../^X-Palm/; print unless @hold; if (/^X-Palm/) {pop @hold; print "$_@hold"; @hold=()}'
j.
Hi Jay, Sorry but I am not a programmer, and I have absolutely no idea how to do what you are telling me above.
Will this move the entire line, even if it is wrapped onto 4-5 lines? How far up or down will it move it?
Would really appreciate if you could provide some instruction in plain english.
Thank you, Matthew