Using -A <n> option, print the search result of the word "zebra" with 2 lines after it from the file /tmp/animals.txt.
Grep useful options
Where is zebra?
Report a typo
Sample Input 1:
lion
pinguin
zebra
hippopotamus
giraffe Sample Output 1:
zebra
hippopotamus
giraffe Write a program in Shell
#!/usr/bin/env bash
solve() {
# add your solution here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.