I have 2 users in Linux. The task is to create this folder structure:
Main folder: mycode | Sub folders: c, java, python, others, public, private, and temp.
for both users.
I have to create it using a shell script.
I have tried this, but it only creates the folder structure for the user I am currently using.
#!/bin/bash
for dir in /home/*
do
mkdir $dir/MyCode
done
for i in /home/*/**
do
mkdir $i/c $i/java $i/python $i/others $i/public $i/private $i/temp
done