Wildcards in Bash
Powerful tools are nice. Wildcards are wild.
Kalle Tolonen · · 1 min read
bash
wildcard
Use case 1: You have several new files in git, but you'd like to only add 1 file. Both file names share a type, so you can't use:
git add *.sql
Since that would add both for the same commit.
We can, however, use the wildcards in a wilder way and solve for the similarity issue:
git add *0.1*
This will select the file with "0.1" string in it's name.
All articles
Comments
No published comments yet.
Add a Comment
Your comment is held for review before it appears publicly.