I'm learning bash code and today I'm studying the command grep
.
if I run
$ ps -fU user | grep thunderbird
terminal shows:
user 17410 1 0 10:09 ? 00:00:20 /usr/lib/thunderbird/thunderbird
user 18990 15896 0 12:25 pts/1 00:00:00 grep --color=auto thunderbird
But if I run:
$ ps -fU user | grep [t]hunderbird
terminal shows:
user 17410 1 0 10:09 ? 00:00:20 /usr/lib/thunderbird/thunderbird
why? I read the guide but I don't understand.