Skip to content
Programmingoneonone
Programmingoneonone
  • Engineering Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
    • 100+ C++ Programs
  • Solutions
    • HackerRank
      • Algorithms Solutions
      • C solutions
      • C++ solutions
      • Java solutions
      • Python solutions
      • Data Structures Solutions
    • Leetcode Solutions
    • HackerEarth Solutions
  • Work with US
Programmingoneonone
Programmingoneonone

HackerRank Grep #3 problem solution

YASH PAL, 31 July 20246 February 2026

In this HackerRank Grep #3 problem solution In this challenge, we practice using the grep command to find specified strings or regular expressions.

Task

You are given a text file that will be piped into your command through STDIN. Use grep to remove all those lines that contain the word ‘that’. The search should NOT be sensitive to case.

Input Format

A text file will be piped into your command through STDIN.

Output Format

Only display those lines that do NOT contain the word ‘that’. The relative ordering of the lines should be the same as it was in the input file.

HackerRank Grep #3 problem solution

Problem solution.

grep -iwv "that"

Second solution.

grep -v -i that

Third solution.

grep -iv that

Fourth solution.

grep -ivw "that"

coding problems solutions Hackerrank Problems Solutions linux shell HackerRankLinux shell

Post navigation

Previous post
Next post

Programmingoneonone

We at Programmingoneonone, also known as Programming101 is a learning hub of programming and other related stuff. We provide free learning tutorials/articles related to programming and other technical stuff to people who are eager to learn about it.

Pages

  • About US
  • Contact US
  • Privacy Policy

Practice

  • Java
  • C++
  • C

Follow US

  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2026 Programmingoneonone | WordPress Theme by SuperbThemes