List all the files in ending with several file extensions?
If I want files ending with `.fas` I know I can do the following with `ls` command :
ls -l /users/jenna/bio/*.fas
and 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 !
Use this: `ls -l /users/jenna/bio/*.{fas,pep}`
Or this: `find /users/jenna/bio -iname '*.pep' -or -iname '*.fas'`