# spam.txt
src/blahblah/potato.py
src/migrations/helloworld.py
spam/blahblah/thing.py
src/thingy/other.cpp
我有这个:
$ cat spam.txt | grep 'src.*\.py' | grep --invert-match '/migrations/'
src/blahblah/potato.py
如何将排除链接到相同的模式?即我如何写下面的'pattern???'
以便得到相同的结果?
$ grep 'pattern???' spam.txt