Wildcards in Bash

Powerful tools are nice. Wildcards are wild.

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.

Your email is never published or shared.

Up to 2,000 characters.

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