Shubh Kotwal

Phots

Blog

lazy_coding

Posted by [email protected] on July 7, 2017 at 6:45 AM

#!/bin/bash

 

 

######Colors#######

NONE='\033[00m'

RED='\033[01;31m'

GREEN='\033[01;32m'

YELLOW='\033[01;33m'

PURPLE='\033[01;35m'

CYAN='\033[01;36m'

WHITE='\033[01;37m'

BOLD='\033[1m'

UNDERLINE='033[4m'

 

 

clear

echo

echo

echo

echo -e ${YELLOW}" Welcome To My Official Code Generator and Compiler ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo

echo

echo -e ${CYAN}" 1.Edit Codes"

echo -e ${PURPLE}" 2.Create , Edit or Compile C Codes"

echo -e ${NONE}" 3.Create SQL Code"

echo -e ${RED}" 4.Compile C Code"

echo -e ${YELLOW}" 5.Show Files in Current Directory"

echo -e ${WHITE}" 6.EXIT"

echo -e ${GREEN}

read -p "Please Choose Any Option:" n

case $n in

1) clear

echo

echo

echo

echo -e ${YELLOW}" Codes Edit Mode ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo

echo -e ${CYAN}

 

read -p " Please Enter File Name:" a

nano $a

shubham

;;

2) clear

echo

echo

echo

echo -e ${YELLOW}" Create and Compile C Codes ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo

echo -e ${GREEN}

read -p " Please Choose a Name:" v

nano $v

echo

echo -e ${CYAN}

read -p " Press Enter To Compile...."

clear

echo

echo

echo

echo -e ${YELLOW}" Compiled Result ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo

 

echo

echo -e ${PURPLE}

gcc $v

./a.out

echo

echo -e ${RED}

read -p " Press Enter To Continue...."

shubham

;;

3) sudo -i -u postgres

srv001

psql

\c database shubh

shubham

;;

4) clear

echo

echo

echo

echo -e ${YELLOW}" Compile C Codes ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo -e ${PURPLE}

echo

echo -e ${GREEN}

read -p " Please Choose a Name:" l

echo

echo -e ${CYAN}

read -p " Press Enter To Compile...."

clear

echo

echo

echo

echo -e ${YELLOW}" Compiled Result ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo

 

echo

echo -e ${PURPLE}

gcc $l

./a.out

echo

echo -e ${RED}

read -p " Press Enter To Continue...."

shubham

;;

5) clear

echo

echo

echo

echo -e ${YELLOW}" Files Present in the Directory ${GREEN}.......by Shubh Kotwal"

echo -e ${RED}"______________________________________________________________________________________________________________________________________________________"

echo -e ${WHITE}" Time :"

date +%r

echo -e ${PURPLE}

 

ls

echo

echo

echo -e ${GREEN}

read -p " Press Enter To continue:"

shubham

;;

6) clear

echo -e ${RED}" *************************************************************************************************************************************

${CYAN}THANK YOU SO MUCH

${RED}*************************************************************************************************************************************"

echo

echo

echo

echo

echo

echo

sleep 3

;;

*) clear

echo

echo

echo -e ${GREEN}" *****${RED}Invalid option${GREEN}*****"

echo

echo

echo -e ${YELLOW}" Hit Enter To Continue"

echo

read xyz

shubh

;;

esac

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

0 Comments