Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $desti_dir = $ARGV[0] ; # destination directory. my @list_view_pri = ClearCase::CtCmd::exec("ls -view_only"); my @viewPri = split("\n",$list_view_pri[1]); foreach my $view (@viewPri) { if(-l $view) { my $where = readlink("$view"); my $dir = $where."/$desti_dir " symlink($view,$dir) || die "Cannot symlink"; } else { system("mv $view $desti_dir"); #move other files }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: handling of soft links
by fmerges (Chaplain) on Jul 26, 2006 at 11:21 UTC |