1

You are in a directory with a large number of FIX logs that are over 1GB in size. You have a text file containing the names of 10 of those files. How can you search for all messages containing “50=MSFT”, only in those ten files?

1

If those filenames do not contain newlines and are one per line in the text file you can do:

cat file_with_filenames | xargs grep -F '50=MSFT'

(You can include the double quotes if they are part of the search string).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.