I was trying to write a script to mogrify some files but it seems to be crapping up on me, it's reached the point where I'm not sure what's going on any more. I'm getting the ' at the end of the lines but not the ' at the beginning of addresses. I'm sure it's something simple - thanks.
Any advice would be greatfully received.
rm /root/currentjpegs.txt
updatedb
locate *.j* > /root/currentjpegs.txt
locate *.J* >> /root/currentjpegs.txt
grep /usr/data/Projects/Projects\ 200 currentjpegs.txt > jpegs.txt
grep -iv therm jpegs.txt > therm.txt
sed -i 's/\/usr/mogrify\ -quality\ 75\ \''/usr/g' /root/therm.txt
sed -i 's/$/'\''/g' /root/therm.txt
Any advice would be greatfully received.
rm /root/currentjpegs.txt
updatedb
locate *.j* > /root/currentjpegs.txt
locate *.J* >> /root/currentjpegs.txt
grep /usr/data/Projects/Projects\ 200 currentjpegs.txt > jpegs.txt
grep -iv therm jpegs.txt > therm.txt
sed -i 's/\/usr/mogrify\ -quality\ 75\ \''/usr/g' /root/therm.txt
sed -i 's/$/'\''/g' /root/therm.txt
Last edited: