I'm pretty sure there's a lot of ways to negate a search/listing. So any suggestion is appreciated.
I was looking inside a folder for any filename/directory which didn't include the string foo.
My approach was to pipe the ls output to grep.
$ ls -rlt | grep -v foo
What's your approach for this?