#!/usr/bin/perl
#
# Author: Peter Keel <killer@discordia.ch>
# This will cut off the first part of a filename to the first dot.
# This means foo.bar.* will be changed to bar.*
#

die "Usage: $0 filename\n" unless ($ARGV[0]);

chop ( $PWD = `pwd`);
$base_dir = $PWD;

foreach $file_name (@ARGV)
    {
	print STDERR "Processing '$file_name'\n";
        $indice = index $file_name, ".";
	$endice = length $file_name;
        $new_file = substr $file_name, $indice+1, $endice ;
        system ("cp $file_name $new_file");
    }

