Development > Scripting and Bash

Genre/s plus A to Z directories in 1 command

(1/1)

bitsnpcs:
Hello,

Open the terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t)

change to your Music directory


--- Code: ---cd Music
--- End code ---

Example 1 - Lets make a music genre directory (named reggae), and 26 folders A thru Z inside this in 1 command -


--- Code: ---mkdir -p reggae/{A..Z}
--- End code ---

Or

Example 2 - Lets make a music genre directory (named reggae), and 2 sub-genre directories named dancehall, and lovers-rock, with 26 folders in each sub-genre folders A thru Z, thats 55 folders in 1 concise command  8)


--- Code: ---mkdir -p reggae/dancehall/{A..Z} reggae/lovers-rock/{A..Z}
--- End code ---


Similar can be tried in video folder, pictures folder, or document folder.

Navigation

[0] Message Index

Go to full version