delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <gs7d13hee0eaqmm9ltbqvphj7hpagu4m4i AT 4ax DOT com> |
Subject: | RE: Renaming gotcha under FAT file system |
Date: | Sat, 7 Apr 2007 11:11:39 +0100 |
Message-ID: | <046d01c778fd$236ddcd0$2e08a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <gs7d13hee0eaqmm9ltbqvphj7hpagu4m4i@4ax.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 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" 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |