Brace expansion to match multiple files in Bash

Bash has handy brace expansion powers that I’ve belatedly discovered.

For example, you can quickly diff a file with and without a suffix:

Or tail multiple log files:

Bash brace expansion can do other things too, such as specify a range with a .. operator.

Published by

Leons Petrazickis

I'm a full-stack developer at IBM Analytics Emerging Technologies. I do Ruby, JS, Python, Hadoop, Spark, as well as web scale devops with Chef and Docker. My opinions are my own.