./rename.pl *.doc#!/usr/bin/perl use strict; use warnings; foreach $_ (@ARGV) { my $oldfile = $_; s/.* //g; rename($oldfile, $_); }
In reply to Re: Simple Perl file rename
by johnlawrence
in thread Simple Perl file rename
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |