LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wildcard metacharacters and options to the ls command (https://www.linuxquestions.org/questions/linux-newbie-8/wildcard-metacharacters-and-options-to-the-ls-command-4175484812/)

CJennings87 11-16-2013 10:48 AM

wildcard metacharacters and options to the ls command
 
what is the command for all files that have exactly three letters in their filenames and end with either the letter "t" or the letter "h" in the /bin directory

I can put ls ???

I can put ls *[t,h]

But, I do not know how to combine it...

unSpawn 11-16-2013 10:59 AM

See 'man bash' ("Pattern Matching").

Madhu Desai 11-16-2013 11:14 AM

Code:

ls /bin/??[th]

CJennings87 11-16-2013 11:24 AM

Thanks to both of you :)


All times are GMT -5. The time now is 03:34 AM.