Archives for July, 2017
How to Run a Shell Script in Infinite Loop
You can run a shell script in infinite loop by using while loop. #!/bin/bash while true do echo "Press CTRL+C to stop the script execution" # Enter your desired command in…
Cut and paste in Vim editor
Here is the simple step by step guideline to cut and paste in Vim editor. Press esc if vim editor in insert mode Position the cursor where you want to…
How to Run a Linux Script During Reboot or Startup
I come accros one use case where I need to run a Linux script every time on system reboot or startup. Create a new script inĀ / Lets consider the below…
Beginner Shell Scripting Reference
I am sharing beginner shell script reference. Local Variable in Shell Script We can create local variables in shell script by using the keyword local. #!/bin/bash HELLO=Hello function helloWorld {…