shell scripting

Convert Binary,HEX, Oct to decimal in Linux/Unix

This is a small Shell tutorial on how to convert different bases to other bases. Some times when working as system admin you require to convert different number systems to others. In this post we will see how to convert different number systems to others. Decimal to Binary echo "obase=2; 23" | bc Output: 10111(…)

How to write shell script in Linux professionally

How to write a shell script professionally and why to write it? Most of the time when we work and write shell script we write on the go not considering others who want to understand it. Suppose you write a shell script and did not given any info what that shell script do, all your(…)

How to run a shell script in Linux

This is a small how-to topic on running the shell script you just received or created. The basic philosophy of Linux is to consider everything as files. And if you want to execute a file/app the permissions are set to executable on that file otherwise you will get permissions denied. Let’s try to execute a(…)

How to find exit status of script or command in Linux?

Want to write meaningful scripts and become good Shell scripting expert? Then this post is for you. In Linux/Unix when you execute a command or a script, they will exit with a meaning full exit status for your understanding purpose. So that we can take necessary actions on the out come(pass, failed or partially completed)(…)