All Pages Tagged Script

Scripting Tips and Tricks

This is my collection of my tips and tricks for writing Bash or Dash scripts. These are what I understood after many years of using linux and writing the scripts.

Immediate Return …

mexii

It is simple but innovative and complicated logic. Movement is in new method by pressing Enter. The indicators in the prompt line, @ [0%]: shows the direction, @ is downward and # …

Controlling Running a Script

We often need to run our script avoiding certain situations like the followings.

  1. Avoiding running a script as ROOT.
  2. Avoiding running a script in background.
  3. Avoiding running a …