We have written some scripts in different coding languages and pushed them into a GitHub repo which has a readme. How do we make a bash script from the scripts. Thanks.
Scripts are files that contains multiple commands. And you can use this script to execute these commands easily.
To create a bash script, write your commands to a file and save it with .sh file extension.
Generally, bash scripts starts with shebang. Shebang is the first line of script and starts with #! characters and continues with the path of executable of bash. It tells your system: "run this script with this executable" .It's generally like this:
Check this video https://youtu.be/Z5VHabv5gNQ where I have created a program replicator tool which create copies of an original program with expiry date. Another thing that was used was Shell Script Compiler. I find this an awesome use of Bash.
My personal webportal: drravirawat.wordpress.com
My YouTube Channel: https://www.youtube.com/channel/UCePEtbmWDmumjO-kqxveSbg