Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Record filtering - 2 input files
Name: Losorio Date: December 8, 2003 at 05:39:17 Pacific OS: SCO Open Server 5 CPU/Ram: Unknown
Comment:
I need a script to filter out records (50,000 plus) from two arrays using a field column and outputs to a new file. Example. File 1: AAAA xxxxx BBBB xxxxx CCCC xxxxx DDDD xxxxx File 2: BBBB xxxxx DDDD xxxxx Desired output: AAAA xxxxx CCCC xxxxx
If i do a multiple loop that would read each line, it might take a long processing time?Any help is appreciated. Thanks.
Summary: ghostdog that's a neat trick. I'll take a shot at explaining it: awk 'FNR==NR{_[++d]=$0;next}{print _[FNR],$4,$5}' file1 file2 First, two definitions: FNR is the input record number of the current ...
Summary: I need to read a specific part of an input file and assign the data as variables until it reaches the "END". So, for captain coke, I need rum, 2, coke, and 4 as seperate variables. I realize that I s...