From: Kaligule Date: Tue, 5 Apr 2016 12:35:24 +0000 (+0200) Subject: rename: add example to the man page X-Git-Tag: v2.28~18 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7d85a7e96621291b0b65cac77b3a262d9deb4ade;p=thirdparty%2Futil-linux.git rename: add example to the man page Signed-off-by: Karel Zak --- diff --git a/misc-utils/rename.1 b/misc-utils/rename.1 index f63d2f2684..d3439bd2f9 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