/Shell-Scripts

Some useful shell scripts to compile and run C++ , C and Java Programs

Primary LanguageShellMIT LicenseMIT

Shell-Scripts

Some useful shell scripts to compile and run C++ , C and Java Programs. Some other scripts are also in others folder.

To run cpp files and see output in terminal

./cpp.sh file_name.cpp

To run cpp files and store output in output.txt

./outcpp.sh file_name.cpp

To run java program and see output in terminal

./java.sh

To run java program and see output in output.txt

./outjava.sh

NOTE

  • The input is read from a input.txt file. If you don't want it then modify .sh files as required.
  • Here we are assuming that java file name is "test.java" which can be changed later as per convinience
  • Don't forget to make input.txt and output.txt files in the same directory in which your program is.
  • If the input.txt and output.txt reside in any other place , provide full path in .sh files