summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/rename.19
1 files changed, 9 insertions, 0 deletions
diff --git a/misc-utils/rename.1 b/misc-utils/rename.1
index f63d2f268..d3439bd2f 100644
--- a/misc-utils/rename.1
+++ b/misc-utils/rename.1
@@ -50,6 +50,15 @@ rename .htm .html *.htm
.PP
.RE
will fix the extension of your html files.
+Provide an empty string for shortening:
+.RS
+.PP
+.nf
+rename '_with_long_name' '' file_with_long_name.*
+.fi
+.PP
+.RE
+will remove the substring in the filenames.
.SH WARNING
The renaming has no safeguards. If the user has permission to rewrite file names,
the command will perform the action without any questions. For example, the