yish8213
12/31/2015 - 7:52 PM

File globbing rules in Bash

File globbing rules in Bash

#http://www.infoworld.com/article/2613338/linux/linux-how-to-script-a-bash-crash-course.html?page=3
#The asterisk matches anything
file.*

#The ? denotes a single character
file.?

#Use square brackets to reference multiple options
file.[ab]

#To select based on ranges of the alphabet or numbers
file.[a-d]

#Negate a matche with the ^ character
file.[^ab]