Here are grep, sed and perl solutions - just for fun, pure bash one:
pattern='?'
while read line
do
[[ "$line" =~ "$pattern" ]] || echo "$line"
done
translated
- for each line on STDIN
- matches the pattern
=~ - and if the match is not fulfilled
||, print the line
jm666 source
share