Creating custom bash scripts
Often we across activities where the same set of actions need to be performed. These can be automated using bash scripts in Linux.
To make a bash script:
1) Begin the script with a shebang #!/bin/bash
2) type in the custom commands. Use $1, $2 etc. for passing in arguments to the script
3)Give it a name and save it in /bin (Create a folder in home directory named bin)
4)Next , to make the file executable, type chmod +x <filename>
Now you are ready to use the power of automation in linux. Have a look at https://github.com/light94/myShellScripts .
To make a bash script:
1) Begin the script with a shebang #!/bin/bash
2) type in the custom commands. Use $1, $2 etc. for passing in arguments to the script
3)Give it a name and save it in /bin (Create a folder in home directory named bin)
4)Next , to make the file executable, type chmod +x <filename>
Now you are ready to use the power of automation in linux. Have a look at https://github.com/light94/myShellScripts .