• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 402
  • Last Modified:

Need help on some wildcard commands


Hi,
I'm trying to learn how to use wildcards. Can someone tell me how do use wildcard to list all files with an odd digit in the filename? What if I want to list all files with number 1 or 3 in the filename ? Thanks !
0
azcalv408
Asked:
azcalv408
2 Solutions
 
HamdyHassanCommented:

$ ls *[13]*







0
 
twobitadderCommented:
ls *[13579]* lists all with odd digits also.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now