| delorie.com/archives/browse.cgi | search |
| 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: | <gs7d13hee0eaqmm9ltbqvphj7hpagu4m4i AT 4ax DOT com> <046d01c778fd$236ddcd0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> |
| Mime-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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" <dave DOT korn AT artimi DOT com> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |