Search Results

Search: Posts Made By: jcborland
2,050
Posted By jcborland
Renaming files in bulk
Hi Everyone,
Thanks for your help.

Scrutinizer that works spot on:
ls *~*~*~*.pdf |
while IFS="~" read f1 f2 f3 f4
do
mv "$f1~$f2~$f3~$f4" "$f1-$f2($f3)$f4"
done

Brilliant.
...
2,050
Posted By jcborland
Renaming files in bulk
Hi Ravinder,
That might work if X1234 was always the text between the ~'s. I need to get what ever is between the 2nd and 3rd ~ placed between a ( and a ). It won't be a constant "X1234". The length...
2,050
Posted By jcborland
Renaming files in bulk
Hi,
It's SCO Openserver 6.0 and sh.

Thanks,
Jim.
2,050
Posted By jcborland
Renaming files in bulk.
Hi,
I have a bunch of files which are named something like:

Company Name~1234~X1234~X1-123.pdf

I need to get them renamed something like:

Company Name~1234(X1234)X1-123.pdf

Once I have...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 12:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy