diff --git a/tren.rst b/tren.rst index 9758623..64177ae 100644 --- a/tren.rst +++ b/tren.rst @@ -2455,6 +2455,8 @@ - Changing A File's "Extension" Suffix +- Replace Spaces In A Filename With Underbars + - Appending- Or Prepending Strings To An Existing File Name - Ordering File Names By Last Modification Time @@ -2463,12 +2465,44 @@ - Ordering File Names By Size +- Undoing A Previous Renaming + + ODDS AND ENDS ------------- -- Quoting your command line arguments properly for the shell you - use is critical. Things like spaces, ``\``, +- Quoting your command line arguments properly for the shell you use + is critical. Things like spaces, ``\``, and ``-`` have to be + properly quoted or either the shell or **tren** itself are going to + complain. Similarly, when using the ``/$ENV/`` and ``/`cmd`/`` + renaming tokens, make sure to enclose them in single quotes if + you're using a standard Unix shell like ``bash``. + +- Whitespace is almost always significant *within* a **tren** option. + You'll need to put proper quoting around it to perserve if for + **tren** to see, whether in a renaming request, an alphabet + definition, or some part of a sequence renaming token. + +- **tren** will attempt to do any requested renaming. However, + if you manage to embed some character in the new name that + the operating system doesn't like, the renaming will fail and + you'll be notified of the fact. Notwithstanding the fact that + you can do all manner of clever things with **tren**, some + restraint is called for when constructing new file- or directory + names. + +- **tren** will prevent you from trying to rename something to a null + string or a name too long for the operating system. Mostly this is + not an issue *unless* you managed to concoct a renaming request that + ends up requiring recursive backups. In that case, the backup + suffix can be tacked onto the file name enough times that the file + name becomes too long for the OS to catch. While **tren** can, and + does catch this, **it cannot unwind what it has done thus far and + you CAN LOSE FILES THIS WAY!!!**. The smart move here is to use + test mode and make sure your proposed renaming isn't going to + require deeply recursive backups. + BUGS, MISFEATURES, OTHER ------------------------ @@ -2539,7 +2573,7 @@ :: - $Id: tren.rst,v 1.178 2010/04/07 21:04:11 tundra Exp $ + $Id: tren.rst,v 1.179 2010/04/07 21:16:51 tundra Exp $ You can find the latest version of this program at: