This tutorial will show you how to pass arguments to shell script.
name.sh and write the below content in it.
echo "My first name is $1" echo "My last name is $2" echo "Total number of arguments is $#"
Run the script
$ ./name.sh Soumitra Roy My first name is Soumitra My last name is Roy Total number of arguments is 2
Thanks for reading.