Shell Script Simple command-line python runner
Recently I have been watching some Shell Script videos from youtube. I just wanted to know how SH works and interact with user. But finally ended coding a simple shell script program for successfully executing python programs. Here I tried to execute php codes using my sh file, but still could't find a solution. You can download full program from My github . First I will explain how the program flows. First user enters he/she desired file name, shell script creates an empty text file with that name. Then program asks what kind of file is this (python or php). When user enters appropriate file type, changes the file extension from text to user desired file type. Asks user to enter the program and save it using CTRL+D. Finally tries to execute the program. (tries because only python codes are executed successfully in this) Here we go, I will explain line by line, what is happening behind the scene (as I un...