X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: robert_neville310 AT yahoo DOT com Subject: Re: Renaming gotcha under FAT file system Date: Mon, 09 Apr 2007 15:40:14 -0700 Lines: 24 Message-ID: <64gl13d0311nah0092rg8o7tog98f6qq56@4ax.com> References: <046d01c778fd$236ddcd0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, 7 Apr 2007 11:11:39 +0100, "Dave Korn" wrote: >On 06 April 2007 20:32, robert_neville310 AT yahoo DOT 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/