in reply to extract line
Probably there is a shorter one liner than this:
perl -F: -ane 'BEGIN {open K, "<file2"; $h{0+$_}=1 for <K>} print if e +xists $h{$F[0]}' file1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: extract line
by rjt (Curate) on Jul 20, 2013 at 20:56 UTC |