SHELL Script Function

 echo "enter two numbers:"
read a
read b
add()
{
c=expr $a + $b
echo "addition is $c"
}
sub()
{
c=expr $a - $b
echo "sub is $c"
}
mul()
{
c=expr $a * $b
echo "Multiplication is $c"
}
div()
{
c=expr $a / $b
echo "division is $c"
}
Add sub mul div

Popular posts from this blog

Oracle Database 19C Performance Tunning - PART 1

Oracle RMAN Backup And Restore

Oracle Patching Using Opatch Utility

Welcome to DBA Master – Database Tips, Tricks, and Tutorials

Oracle 19c Database Software Installation in OEL8

PostgreSQL Triggers

PostgreSQL Opensource Installation in RHEL or Oracle Linux(OEL) 8 and above

PostgreSQL Cursor

PostgreSQL Procedures

PostgreSQL User & Role Management