Is there a better way to do this? ...
What I'm hoping to find is a way to not create that temporary file and possibly retain the permissions before it was changed.
Thanks,
--
-- Ghodmode
Code:
for FILE in *.pl; do
echo $FILE
sed $FILE -e 's!c:\\xampp\\xampp\\kqsb!/opt/lampp/kqsb!g' > $FILE.tmp
mv $FILE.tmp $FILE
chmod 755 $FILE
done
What I'm hoping to find is a way to not create that temporary file and possibly retain the permissions before it was changed.
Thanks,
--
-- Ghodmode