This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Renaming gotcha under FAT file system


On 06 April 2007 20:32, robert_neville310@yahoo.com wrote:

> printf "mv %-200s \"%s\"\n" "-f \"$DIR/"$FILE"\"" "$DIR"/"$NEWNAME" >>
> doit.sh 

printf "mv %-200s \"%s\"\n" "-f \"$DIR/"$FILE"\"" "$DIR"/"$NEWNAME~" >>doit.sh

printf "mv %-200s \"%s\"\n" "-f "$DIR"/"$NEWNAME~" "$DIR"/"$NEWNAME" >>doit.sh


 
> The typical command in the doit.sh file looks like the following line.
> 
> mv -f "file_to_be_rename.ext" "File_To_Be_Rename.ext"


mv -f "file_to_be_rename.ext" "File_To_Be_Rename.ext~"
mv -f "File_To_Be_Rename.ext~" "File_To_Be_Rename.ext"




    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]