#!/bin/bash echo "1. create a folder " echo "2. create a file " echo "3. create a folder and file" read -p "Select an option from 1, 2 or 3 : " option if [ $option -eq 1 ] then if [ -e $1 ] then echo " file already in the folder" else mkdir $1 fi elif [ $option -eq 2 ] then ls -l > $3 elif [ $option -eq 3 ] then mkdir $2 ls -l > $2/$3 else echo "option not available " sleep 5 exit 0 fi