Linux Lite Forums
Genre/s plus A to Z directories in 1 command - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7)
+--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32)
+--- Thread: Genre/s plus A to Z directories in 1 command (/showthread.php?tid=4287)



Genre/s plus A to Z directories in 1 command - bitsnpcs - 07-24-2017

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

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}

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}


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