Today I Learned

hashrocket A Hashrocket project

Bracket Ranges

Today while making a bunch of throwaway directories, I tried this command in ZSH:

$ mkdir test_app/{1..5}

This tab-completed to, you guessed it:

$ mkdir test_app/1 test_app/2 test_app/3 test_app/4 test_app/5

Three cheers for laziness! It's useful to know you can use ranges this way (did not work in Bash).

See More #command-line TILs