Score:0

How to match results with grep from a list of words in a file?

mx flag

for this example:

grep 'word1\|word2\|word3' /path/to/file

can these be placed in a file?

something like:

grep '<file_with_a_list_of_words>' /path/to/file

for a large list of words to match.

muru avatar
us flag
`grep -f '<file_with_a_list_of_words>' /path/to/file`
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.