How can I grep a paragraph from a file in the Solaris operating system? I tried the -p
option used in AIX, but it's not useful in Solaris.
grep -p Accept
is not working in Solaris. Is there any other option?
How can I grep a paragraph from a file in the Solaris operating system? I tried the
| ||||
feedback
|
This question came from our site for professional and enthusiast programmers.
Awk is present on every unix (it's standard). Anything that grep or sed can do, can be coded in awk (but it's not always straightforward). Awk operates record by record. The default record separator is a newline (i.e. by default, a record is a line), but if the
| |||
feedback
|
Using the standard | |||
feedback
|
/opt/swf/bin
for a GNU grep? It is probably not in the PATH. – ceving Sep 14 at 19:59