Shell script tutorial part 1
Here is a simple shell script to start with, #!/bin/sh MY_MESSAGE="Hello World" echo $MY_MESSAGE This assigns the string "Hello World" to the variable MY_MESSAGE then echoes out the value of…
Here is a simple shell script to start with, #!/bin/sh MY_MESSAGE="Hello World" echo $MY_MESSAGE This assigns the string "Hello World" to the variable MY_MESSAGE then echoes out the value of…
Simple command to change the permission only on files recursively in linux find . -type f -exec chmod 664 {} \; The above command will first find only the files…
Quick guide on counting the number of processors in Linux server Using cpuinfo file Simple command to find the number of processor in linux. Run cat /proc/cpuinfo | grep processor|wc…
Here is a simple example of combining output of two files in to a file named, for example "new.txt" in Linux / Unix. Assuming that we have 2 files named…