-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkdir.sh
20 lines (14 loc) · 1.04 KB
/
mkdir.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/sh
# Author : Soumyadip Sarkar
# License = "Feel free to copy, I appreciate if you star 🌟 the repo"
# Github: soumya997
# Usage:
# directory generator with single file maker using some boilerplate code
echo "Enter the dir name: " # asking user for giving a directory name
read dir_name # taking file name from user
mkdir $dir_name # making the directory using the user input
cp touch.py $dir_name # copying touch.py in that directory
cp trash/inputf.in $dir_name # copying the inputf.in file in that directory
cp trash/outputf.in $dir_name # copying the outputf.in file in that directory
touch $dir_name/README.md # creating a README.md file
echo -e "# Things I learned in: $dir_name\n**Note:** use the github provided TOC for navigaing." >> $dir_name/README.md # putting the dir name inside the README