if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Bash Scripting Simple Function Using Shell Echo Command UNIX LINUX

Unix Linux bash scripting it has the function name program() it has the two variable $1 and $2 in the main function a is assign with hello b is assign with world. Using echo command in bash UNIX command it will display the word. Using this script we can perform the simple operation to display the character CS1252 Operating Systems lap
Source code bash shell Programming Algorithm
echo “ 1 is $1 ”
echo “ 2 is $2 ”
a= “ goodbye ”
program $a $b
echo “ a is $a ”
echo “ b is $b ”

OUPUT CS1252 Operating Systems lap Simple Function
[redhat@localhost rhel5]$ sh function.sh
1 is hello
2 is world
a is goodbye
b is world

Related post