$ print_msg "LinuxTechi" When you execute this function $ echo "Value returned by function is
2018-08-19
send alert mail when server memory is running low## send email if system memory is running low
2017-11-29
thus affecting the rest of the script (may eventually result in logical errors). Use the line below to exit a script when a command fails#let script e
2017-05-19
Created both the ~/.vim/autoload and ~/.vim/bundle directories. Added the execute pathogen#infect() line to your ~/.vimrc file. Did the git clone of s
2017-04-24
So you would use the function printUSERDETS from the lib ~/lib/sh/libMYFUNCS.sh in another script as shown below. You do not have to write another cod
2017-02-07
logical errors. Take for instance the check_root function in the sys_info.sh shell scriptwe can see that a regular system user can run the script with
2016-12-31
#altering the first line of a script to enable syntax checkingwe can employ the set shell built-in command to enable debugging mode in the script abov
2016-12-10
$ /bin/sh script_name argument1 ... argumentN [For sh scripting]this method will also turn on debugging of the entire script. $ shell option(s)
2016-11-28
the importance of shell scripts in Linux administration is endless and The Complete Linux Shell Training for Beginners course will guide you toward ab
2016-10-10
# Sample script to demonstrate the creation of an HTML report using shell scriptingecho $line | awk '{print $5}' >> $WEB_DIR/report.html
2015-08-14