grep with pattern and line number
Hi,
I want to grep the patteren that starts with some name. if it matches then print next 7 lines.
Working fine if i use the below syntax
# grep -A 7 app /tmp/wiki
Not working if i grep the pattern that starts with
# grep -A 7 "^app" /tmp/wiki
# echo $?
1
Can any body help to correct the syntax to find the pattern that starts with or any alter command ?
|