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
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
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
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