Column insert on uneven lines

2010-06-06 Thread LuKreme
Something I do quite a bit is take a file like this: file1.txt file2.txt file3.txt and a file likes this: Fred George Alex and convert it to mv file1.txt a long filename - 1 - Fred.txt mv file3.txt a long filename - 2 - George.txt mv file3.txt a long filename - 3 - Alex.txt I do this by

Re: Column insert on uneven lines

2010-06-06 Thread Doug McNutt
At 13:31 -0600 6/6/10, LuKreme wrote, and I snipped a bit: Something I do quite a bit is take a file like this: file1.txt file2.txt file3.txt and a file likes this: Fred George Alex and convert it to mv file1.txt a long filename - 1 - Fred.txt mv file3.txt a long filename - 2 - George.txt mv

Re: Column insert on uneven lines

2010-06-06 Thread Kendall Conrad
Well, for 15 chars from end of line you could use regexp (grep in the find/replace dialog). Here's a crude example ([\w\W]{15})$ Then replace what's found with: newstuff\1 The \1 is what is captured in the regexp. -Kendall On Jun 6, 3:31 pm, LuKreme krem...@kreme.com wrote: Something I do

Re: Column insert on uneven lines

2010-06-06 Thread LuKreme
On 6-Jun-2010, at 20:11, Kendall Conrad wrote: Well, for 15 chars from end of line you could use regexp (grep in the find/replace dialog). Here's a crude example ([\w\W]{15})$ Then replace what's found with: newstuff\1 Oh, well, now I feel stupid. Why didn't I think of that? -- I