]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rename: add example to the man page
authorKaligule <Code@schauderbasis.de>
Tue, 5 Apr 2016 12:35:24 +0000 (14:35 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Apr 2016 11:43:57 +0000 (13:43 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/rename.1

index f63d2f26840bf81199f2a389345aa6bdc4e8e54f..d3439bd2f9f2a721bdccfa57672ec082671c88f1 100644 (file)
@@ -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