- or download this
system ('grep -l "DATAmessage.*3\.0" *.xml > 3.0_files_arraydata.txt')
+;
- or download this
open my $FH, '>', '3.0_files_arraydata.txt'
...
}
}
- or download this
system ("mv temp_3.0_files_onixarraydata.txt 3.0_files_arraydata.txt")
+;
- or download this
rename 'temp_3.0_files_onixarraydata.txt', '3.0_files_arraydata.txt'
or die "Cannot move 'temp_3.0_files_onixarraydata.txt' because: $!
+";
- or download this
system ("cat *files_arraydata.txt > data2.txt");
- or download this
open my $FH, '>', 'data2.txt'
or die "Cannot open 'data2.txt' because: $!";
...
print $FH $_ while <>;
}
- or download this
system ("rm data2.txt");
- or download this
unlink 'data2.txt'
or die "Cannot delete 'data2.txt' because: $!";
- or download this
system ("sort -u data2.txt > data.txt");
- or download this
open my $IN, '<', 'data2.txt'
or die "Cannot open 'data2.txt' because: $!";
...
print $OUT sort grep { ! $unique{ $_ }++ } <$IN>;
}