Using Brace Expansion

The ultimate labor-saving trick at the command-line is brace expansion. Put simply, anything within braces ({}) is substituted within the specified filename. The following will create new directories called PhotosGermany, PhotosEngland, and PhotosSpain: mkdir Photos{Germany,England,Spain} In other words, the mkdir command takes the word Photos and combines it with Germany, England, and Spain, creating three … Read more