How-to-define-and-use-functions-in-Linux-Shell-Script

 $ print_msg "LinuxTechi" When you execute this function $ echo "Value returned by function is

2018-08-19


A-Shell-Script-to-Send-Email-Alert-When-Memory-Gets-Low

send alert mail when server memory is running low## send email if system memory is running low

2017-11-29


10-Useful-Tips-for-Writing-Effective-Bash-Scripts-in-Linux

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


ShellCheck---A-Tool-That-Shows-Warnings-and-Suggestions-for-Shell-Scripts

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



How-To-Write-and-Use-Custom-Shell-Functions-and-Libraries

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


How-to-Trace-Execution-of-Commands-in-Shell-Script-with-Shell-Tracing

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


How-to-Perform-Syntax-Checking-Debugging-Mode-in-Shell-Scripts

#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


How-To-Enable-Shell-Script-Debugging-Mode-in-Linux

$ /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



Deal-Learn-Linux-Shell-Scripting-Course-to-Automate-Administration-Tasks-(92-Off)

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


Using-Shell-Scripting-to-Automate-Linux-System-Maintenance-Tasks---Part-4

# Sample script to demonstrate the creation of an HTML report using shell scriptingecho $line | awk '{print $5}' >> $WEB_DIR/report.html

2015-08-14