Reputation: 584
For example I have files that have names like
How can I find all 'book%NUMBER%_volume' files in one search? How do I mask the number after 'book'?
Upvotes: 1
Views: 40
Reputation: 246807
If there can be more than one digit, use an extended pattern:
shopt -s extglob nullglob
books=( book_+([0-9])_volume* )
Upvotes: 2