in reply to search text file
This shell command almost works, but not quite: it actually counts the number of lines each string matches, so if a string can occur more than once in a line you'll get a wrong answer.
( while read; do grep -cFe "$REPLY" secondfile; done ) < firstfile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search text file
by jwkrahn (Abbot) on Jul 27, 2011 at 10:45 UTC | |
by ambrus (Abbot) on Jul 27, 2011 at 11:51 UTC |