Search Results

Search: Posts Made By: fransanchezoria
23,641
Posted By Klashxx
A Perl: #!/usr/bin/perl my...
A Perl:
#!/usr/bin/perl
my $result_file=shift;
my $pattern=shift;
my (@file_list) = glob $pattern;

open( OUT, ">$result_file") or die "Can't open '$result_file':$!";
foreach my $in_file...
23,641
Posted By Klashxx
Something like this: # ls file*csv file1.csv ...
Something like this:
# ls file*csv
file1.csv file2.csv
# awk '{print $0","FILENAME}' file*csv > result.csv
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy