Wildcards in Bash

Powerful tools are nice. Wildcards are wild.


Kalle Tolonen
Aug. 12, 2025


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.


Comments

No published comments yet.

Add a comment

Your comment may be published.