Computer scienceSystem administration and DevOpsCommand lineText processing

Grep useful options

Regular expression search

Report a typo

Write a regular expression and use the -rh option to display the words from the /tmp/test directory that start with the letter 'c'.

Sample Input 1:

./file1.txt:
canary
duck
hen
goose

./file2.txt:
woodpecker
quail
owl
cuckoo 

Sample Output 1:

canary
cuckoo
Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here

}
___

Create a free account to access the full topic