On Fri, Apr 20, 2001 at 08:15:59AM -0500, Jim Baxter wrote:

> Hi
> 
> Is there a way to rename all the files in a directory the end with .123
> to end with .src ?
> 
> example test.123 to test.src

A bit of scripting:

ls *.123 | perl -e '
while(<>) {
chop;
$old=$_;
chop; chop; chop;
$new=$_ . "src";
rename $old,$new;
}'

-- 
Anand



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to