Wildcards in Bash

Powerful tools are nice. Wildcards are wild.

Kalle Tolonen
12.8.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 is held for review before it appears publicly.

Tick the box, then click Submit right away (Google expires the check after about two minutes).