How to get rows from one file, that contains in another file
Example, i have
// first foo bar
// second foo;1;3;p1 bar;1;3;p2 foobar;1;3;p2
This files are big, first file contain ~ 500 000 records, and second ~ 20-15 millions
I need to get this result
// attention there is no "p1" or "p2" for example foo;1;3 bar;1;3
This looks like it wants the
joincommand, possibly with sorting. But with millions of records, it’s time to think seriously about a real DBMS.(This requires
bashorzshfor the<(command)syntax; portably, you would need to sort into temporary files or keep the input files sorted.)