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 Sat, 7 Apr 2007 11:11:39 +0100, "Dave Korn" <dave.korn@artimi.com> wrote:

>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"
>
Thanks Dave,

I built some additional logic based on your suggestion.


--
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]