Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
[b]2. Shell Bash Script
[b]3.
!/bin/bash
if [ ! -d /home/AC_Drywall]
echo no directory
then
mkdir -p /home/AC_Drywall
elif [ ! -d ]; then
echo "$dir already exist"
fi
[b]4. Gwinnett Tech College / CIST 1520 Scripting Technologies / Shane Archibald
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
I'm totally lost on what the code suppose to look like on this project:
The Antonio Czechos Drywall Firm has hired you to help implement a directory structure for them based on Figure 5-19. Because you were called out of town to aid another customer, you cannot go to the site. In the meantime, you decide to write a script that will create the structure for them. To create the directory structure, complete the following tasks:
Helllllllllllllllllllllllp!!!
---------- Post updated at 01:12 PM ---------- Previous update was at 12:42 PM ----------
So this the code I wrote completely but i believe it's wrong
!/bin/bash
if [ ! -d /home/AC_Drywall]
then
echo no directory
then
mkdir -p /home/AC_Drywall
elif [ ! -d ]; then
echo "$dir already exist"
fi
if [ ! -d /home/AC_Drywall/MIS/Production/Marketing]
then
echo no directory
then
mkdir -p /home/AC_Drywall/MIS/Production/Marketing
elif [ ! -d ]; then
echo "dir already exist"
fi
if [ ! -d /home/AC_Drywall/MIS/Project1/work1.doc/work2.doc]
then
echo no directory
then
mkdir -p /home/AC_Drywall/MIS/Project1/work1.doc/work2.doc
elif [ ! -d ]; then
echo "dir already exist"
fi
if [ ! -d /home/AC_Drywall/Production/Shift1/Shift2/Shift3]
then
echo no directory
then
mkdir -p /home/AC_Drywall/Production/Shift1/Shift2/Shift3
elif [ ! -d ]; then
echo "dir already exist"
fi
if [ ! -d /home/AC_Drywall/Production/Shift1/.manager1.txt/emp1.txt]
then
echo no directory
then
mkdir -p /home/AC_Drywall/Production/Shift1/.manager1.txt/emp1.txt
elif [ ! -d ]; then
echo "dir already exist"
fi
if [ ! -d /home/AC_Drywall/Marketing/Sales/Admin]
then
echo no directory
then
mkdir -p /home/AC_Drywall/Marketing/Sales/Admin
elif [ ! -d ]; then
echo "dir already exist"
fi
if [ ! -d /home/AC_Drywall/Marketing/Sales/East/West]
then
echo no directory
then
mkdir -p /home/AC_Drywall/Marketing/Sales/East/West
elif [ ! -d ]; then
echo "dir already exist"
fi