> I was just wondering if that could be done using only one grep with regex > > grep -v --regex=foo|bar settings.json > > , but the pipe is handled as a file pipe... grep -v --regex="foo|bar" file