[ale] Problems w/ mv and sed

Dana Powers dana at slothlovechunk.org
Mon Dec 23 19:50:10 EST 2002


Seems that the quotes are not working the way you expect. Try not escaping
the quotes around the arguments to mv:
do mv "$FILE" "` echo $FILE | sed -e 's/\.OK//'`";
if this doesnt work (i believe it should), try escaping the spaces in the
FILE variable:
do VAR="`echo $FILE | sed -e 's/ /\\ /g'`"; mv $FILE `echo $FILE | sed -e
's/\.OK//'`; done

dpk

----- Original Message -----
From: "Stephen Touset" <stephen at touset.dyndns.org>
To: ale at ale.org
To: "ale Mailing List" <ale at ale.org>
Sent: Monday, December 23, 2002 6:21 PM
Subject: [ale] Problems w/ mv and sed


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list