in reply to Re: Copying files
in thread Copying files
-Enlil#!/usr/bin/perl open(GG,"getall.txt"); $dest="/home/test/files/"; $targ="/home/new/newfiles/"; while (<GG>) { chomp; ($first,$second,$third)=split(/\./,$_); print "first: $first second: $second third: $third \n"; my $dest_file = $dest . $_; my $target_file = $targ . "gotit.$second.$third"; system (`cp $dest_file $target_file`); } close(GG);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Copying files
by mark_clements (Initiate) on Sep 27, 2002 at 12:08 UTC |