Reputation: 4948
I am following an impatient way of learning and working with bash scripts, in this link I saw a line like this:
INSTALLED=$(dpkg -l \grep $1)
can you tell me what \grep means?
thanks
Upvotes: 3
Views: 270
Reputation: 785316
\grep
means execute system default grep
from /bin/grep
OR /usr/bin/grep
ignoring all local environment aliases you may have set up for grep
.
Example:
> alias grep=date
> grep
Thu Nov 28 22:49:57 EST 2013
> \grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Upvotes: 5