When I execute
ls /directory | grep '[^term]' in Bash I get a regular listing, as if the
grep command is ignored somehow. I tried the same thing with
egrep, I tried to use it with double and single quotes, but to no better results. When I try
ls /directory | grep '^[term] I get all entries beginning with term - as expected.
I have tried out this command in an online editor, where I can test my regex and it worked as it should. But not in Bash. So it works in a simulation, but not in real life.
I work on Crunchbang Linux 10. I hope this is enough information and am looking forward to every hint, because failing to execute on such a basic level and wasting hours of time is really frustrating!