Computer scienceSystem administration and DevOpsCommand lineText processing

Grep useful options

Recursion searching

Report a typo

Use the -r option to find all entries of the word "computer" in the files from the /tmp/test directory.

Sample Input 1:

./file1.txt:
The programmer bought a new computer.
The new device is faster.

./file2.txt:
A new hardware store has been opened in our city.
The new hardware store has a discount on а computer. 

Sample Output 1:

/tmp/test/file1.txt:The programmer bought a new computer.
/tmp/test/file2.txt:The new hardware store has a discount on а computer. 
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic