in reply to Re^4: A DWIM too far?
in thread A DWIM too far?
Rewriting rename to include the -i option (or -y option for Windoze) will not clobber an existing file (unless the underlying OS function has the same problem with the -i option, in which case we're all screwed.)
I tried my example out, and it seemed to work as I intended. I'm sure someone has come up with a more robust and useful version. I was just trying to show that it was possible.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: A DWIM too far?
by eric256 (Parson) on Jun 18, 2004 at 16:04 UTC | |
by QM (Parson) on Jun 18, 2004 at 18:48 UTC | |
by BrowserUk (Patriarch) on Jun 18, 2004 at 19:35 UTC |