Day 5 - Advanced Linux Shell Scripting
Advanced Shell Scripts in Linux
1) Creating Multiple Directories Using Shell Script.
ubuntu@ip-172-31-10-117:~/test$ cat test_script.sh
#!/bin/bash
dirs=("dir1" "dir2" "dir3" "dir4")
for dir in "${dirs[@]}"; do
mkdir -p "$dir"
echo "Created dir...
tusharranjan.hashnode.dev4 min read