I am searching for files in linux and am able to execute the command to search for a single type of format e.g
*.jpg but would like to find all files with
*.css in one command.
migrated from stackoverflow.com Apr 23 '12 at 22:34
This question came from our site for professional and enthusiast programmers.
There is a fingerbreaking variant with regex:
It's shorter and avoid pitfalls, combined with the -o versions:
The ls is only adapted to the second pattern, here. You can avoid it with
but that is getting a bit cryptic too.
Very fast for searching your whole system in the update-db-index is locate, which knows regex too, but doesn't find ultra fresh files: