From 3ba4e79d41c7c8f98cacc85b312b34931bbb1b74 Mon Sep 17 00:00:00 2001 From: Peter Aronoff Date: Tue, 22 Jun 2010 09:31:19 -0400 Subject: A Perl-based renaming script - better than mv This is simply a (slightly) packaged up version of Aristotle Pagaltzis rename script (which is in turn based on the Debian rename script by Larry Wall and others). rename provides for more powerful renaming via Perl's support for regular expressions. This version also provides some handy built-in utility functions. For example, you can quickly upcase or downcase file names, as well as removing unsafe/non-standard characters from filenames. Signed-off-by: Adam Vandenberg --- Library/Formula/rename.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Library/Formula/rename.rb (limited to 'Library/Formula') diff --git a/Library/Formula/rename.rb b/Library/Formula/rename.rb new file mode 100644 index 000000000..98d2fa82f --- /dev/null +++ b/Library/Formula/rename.rb @@ -0,0 +1,18 @@ +require 'formula' + +class Rename