If I want files ending with .fas I know I can do the following with ls command :ls -l /users/jenna/bio/*.fasand this lists out all the files ending with .fas. But how can I get files ending with either .fas or .pep ?ls -l /users/jenna/bio/(*.fas | *.pep) doesn't seem to work ? I know there might be other commands that can do this, but is there a way to make it work with ls ? Thanks for any help !
List all the files in ending with several file extensions?
files;directory;ls
Use this:ls -l /users/jenna/bio/*.{fas,pep}Or this:find /users/jenna/bio -iname '*.pep' -or -iname '*.fas'