rename: add example to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Kaligule 2016-04-05 14:35:24 +02:00 committed by Karel Zak
parent d551d66891
commit 7d85a7e966
1 changed files with 9 additions and 0 deletions

View 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