Shell Scripting Tutorial – 8

Hello,

I am Aaditya Purani, and yes we reached our final tutorial of the Course. Thanks for bearing that 😀
Today let’s learn about concept of Functions. It’s a  code which you may call multiple times within your script

bash

Code:

#!/bin/bash

my_function(){
    
    echo “Yes. it worked”;
}

my_function

It will actually call my_function. You can even make complex functions, this function is without any parameter’s passed. I hope you liked the series

Video Link: https://www.youtube.com/watch?v=6pnrMJL_odM

 

Thank you

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s