[TxMt] Need help finding and MOVING text

Matthew London mlondon at sprynet.com
Sun Nov 4 13:32:53 UTC 2007


>> On 10/30/07, mlondon <mlondon at 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 "$_ at 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



More information about the textmate mailing list