From fbae1a80037b6946fc2dacbfd84477d9b6d92607 Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 17 Jul 2022 14:10:47 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Egtc-rename=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gtc-rename | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtc-rename b/gtc-rename index 0b083c5..90e2132 100755 --- a/gtc-rename +++ b/gtc-rename @@ -1,7 +1,4 @@ #!/usr/bin/perl -w -# before|||30.11.10|||olli|||Rename files recursively|||This script renames all filesnames (and dirs) in a specified path with specified Regex'es in a specified regex-file.
For e.g. to rename change the character a in all filenames to b and y into z you can create a regex file e.g. /tmp/rename with the following lines:
s/a/b/g;
s/y/z/g;
# Then you run this command with the following options:
# $0 -p /path/in/which/you/want/to/rename -r /tmp/rename
-# after -#!/usr/bin/perl -w # === Strict Perl === use strict; @@ -174,8 +171,8 @@ Options: -r file\t-> The file with your Substuitutions -v\t-> Be verbose -s\t-> Dry (simulation) run --u file\t-> Undo a job. You have to specify an undo file. The undo-files are in the .gtc-rename in yout homedir: ~/.gtc-rename +-u file\t-> Undo a job. You have to specify an undo file. The undo-files are in the .gtc-rename in your homedir: ~/.gtc-rename "; exit 1; } -# ---- +