+-----------------------------------------------------------------------------+
LABEL: super1_fix
EFIX FILES: 1
ABSTRACT: epkg for touch command
PRE-REQUISITES: no
PACKAGER VERSION: 7
REBOOT REQUIRED: no
BUILD BOOT IMAGE: no
FIX TESTED: no
Install Scripts:
PRE_INSTALL: no
POST_INSTALL: no
PRE_REMOVE: no
POST_REMOVE: no
********
Now I want to grep for REBOOT, BUILD BOOT IMAGE, POST_INSTALL, ABSTRACT in this file.
I know that there is egrep to do logical OR...I want to know if we can grep all
the above fields by logical AND? Is there any way that I can grep alll these
in a single stretch of a command??
Hi vbe thanx for the reply.
It did solve a part of my problem . But the other thing is :
I put the following line in my script.
grep -e "LABEL" -e "EFIX FILES" -e "PACKAGER VERSION" -e "LOCATION" \
grep -e "PRE_REMOVE" -e "POST_REMOVE" file_name.
Since the line exceeded more than 1, I used "\" . But the script is not recognising this and is throwing error as below:
grep: 0652-033 Cannot open grep.
grep: 0652-033 Cannot open -e.
grep: 0652-033 Cannot open PRE_REMOVE
......
....
Please, tell me how can I overcome this error when I have more than 1 line in the shell script for grep.