HackerRank - 'Grep' - A

April - 25/2025

Problem:

Given a text file, which will be piped to your command through STDIN, use grep to display all those lines which contain any of the following words in them: the, that, then and those

# Input

# Output

# Solution

            
    grep -w -i -E "the|that|then|those"
    

Post: