This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Renaming gotcha under FAT file system
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Sat, 7 Apr 2007 11:11:39 +0100
- Subject: RE: Renaming gotcha under FAT file system
- References: <gs7d13hee0eaqmm9ltbqvphj7hpagu4m4i@4ax.com>
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/