k tomu lze použít logické OR a AND.
retazec1 OR retazec2 OR retazec3:
grep -e "retazec1" -e "retazec2" -e "retazec3" subor
retazec1 AND retazec2 AND retazec3:
grep retazec1 subor | grep retazec2 | grep retazec3
k tomu lze použít logické OR a AND.
retazec1 OR retazec2 OR retazec3:
grep -e "retazec1" -e "retazec2" -e "retazec3" subor
retazec1 AND retazec2 AND retazec3:
grep retazec1 subor | grep retazec2 | grep retazec3