-
Perl one liner executing a shell command on…
la garde rencontre bi Perl one liner executing a shell command on files. e.g. copy all *.c files to new names, *.R. perl -de ‘foreach (@ARGV) {($new = $_) =~ s/c$/R/; system(“cp $_ $new”);}’ *c
la garde rencontre bi Perl one liner executing a shell command on files. e.g. copy all *.c files to new names, *.R. perl -de ‘foreach (@ARGV) {($new = $_) =~ s/c$/R/; system(“cp $_ $new”);}’ *c