is there some way to filter output of command by OR condition in Linux?
There is filtering by AND condition with grep in way like:
ls -l | grep "^a" | grep "z$"
That says: list all files that beggins with "a" AND ends with "z" (so there is shorter way to write this: grep "^a\.*z$", but it is not matter).
Is there some way to perform test by OR condition?
For example: files that starts exactly with "xen" OR files that ends exactly with ".rpm". But exactly, not something like:
Thank you for ahead.