From 7d85a7e96621291b0b65cac77b3a262d9deb4ade Mon Sep 17 00:00:00 2001 From: Kaligule Date: Tue, 5 Apr 2016 14:35:24 +0200 Subject: rename: add example to the man page Signed-off-by: Karel Zak --- misc-utils/rename.1 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'misc-utils') 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 -- cgit v1.2.3-55-g7522