Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "_______________________________________________________"
- echo "<<<<<<<<<<<<<<<<<< Starting IED >>>>>>>>>>>>>>>>>>>>>>>"
- echo "_______________________________________________________"
- echo -ne "enter a file name >>"
- read f1
- touch $f1
- chmod +x $f1
- echo ""
- echo "_______________________________________________________"
- echo "<<<<<<<<< which editor do you want to use >>>>>>>>>>>>>"
- echo "_______________________________________________________"
- echo ""
- echo " 1> vim 2> nano 3> gedit"
- echo -ne " enter your choice >>"
- read ch
- if [ $ch -eq 1 ]
- then
- vi $f1
- elif [ $ch -eq 2 ]
- then
- nano $fi
- else
- gedit $f1
- fi
- #vi $f1
- echo -ne "do you want to execute the file (y/n) :"
- read en1
- echo "________________OUTPUT_____________________"
- case "$en1" in
- #case 1
- "y") ./$f1 ;;
- #case 2
- "n") echo "process ends" ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement