Search Results

Search: Posts Made By: ad23
7,748
Posted By alister
Yes. Reverse the order in which the files are...
Yes. Reverse the order in which the files are processed. Read the serial numbers first, using them as keys in an array. Then when reading the xls test if $1 is a key in the array. Modify the line...
1,118
Posted By bartus11
Try: awk...
Try: awk 'NR==FNR{id=$2;sub("ID-","",id);a[id]=$0;next}/^>/{id=$1;sub(">","",id);$0=$1" | "a[id]}1' file1 file2
15,050
Posted By panyam
Remove the "$" sign and try
Remove the "$" sign and try
15,050
Posted By durden_tyler
.... <Shell script snipped> ... a_programmer's...
.... <Shell script snipped> ...
a_programmer's shell for loop is far better.

Perl globbing example follows -

You can iterate through all files named "Data.txt" in the Perl program itself,...
15,050
Posted By a_programmer
Simply pass full/relative paths with directory...
Simply pass full/relative paths with directory name to your perl script. (This is assuming your perl script does not expect the file to be in the current working directory).


## Assuming the...
Showing results 1 to 5 of 5

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