Created
November 18, 2023 05:54
-
-
Save ApexExpress/8aaca9e8e75687af24a76afda48ae1d3 to your computer and use it in GitHub Desktop.
Create the following directorys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
directories=( | |
"/home/kali/Desktop/SYS/SYSTEM/CODE" | |
"/home/kali/Desktop/SYS/SYSTEM/CONFIGS" | |
"/home/kali/Desktop/SYS/SYSTEM/DATA" | |
"/home/kali/Desktop/SYS/SYSTEM/EXT" | |
"/home/kali/Desktop/SYS/SYSTEM/INDEX" | |
"/home/kali/Desktop/SYS/SYSTEM/MAP" | |
"/home/kali/Desktop/SYS/SYSTEM/META" | |
"/home/kali/Desktop/SYS/SYSTEM/RTV" | |
"/home/kali/Desktop/SYS/SYSTEM/SOURCE" | |
"/home/kali/Desktop/SYS/SYSTEM/SRC" | |
) | |
for dir in "${directories[@]}"; do | |
if [ ! -d "$dir" ]; then | |
mkdir -p "$dir" | |
echo "Created directory: $dir" | |
else | |
echo "Directory already exists: $dir" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment