Seu título é totalmente respondido por A não fazer nada em um script bash : : or true são efetivamente equivalentes a pass .
No entanto, nestas circunstâncias, eu inverteria a condição:
if ! grep something
then
code
fi
e
>>> for element in a:
... if element:
... print element