Leser: 3
|< 1 2 >| | 11 Einträge, 2 Seiten |
foreach $file (@files) { $file =~ s/^(.*)$/'$1'/; }
system("tar -cf", $filename, @files);
@files = map {$_ = "'" . $_ . "'";} @files;
1
2
3
4
5
6
7
8
#!/usr/bin/perl
use strict;
use warnings;
my @files = qw( file1 file2 file3 );
map {$_ = "'" . $_ . "'";} @files;
print @files, "\n";
system("tar -cf", $filename, @files);
system('tar', '-cf', $filename, @files);
1
2
3
if (system($command, @args)) {
die ""Error: executing $command @args failed: $?\n";
}
|< 1 2 >| | 11 Einträge, 2 Seiten |