On Fri, May 8, 2020 at 3:58 AM Muhammed Suhail <[email protected]> wrote:
> Hello Safi, > > Thanks for the input. I will put in comments to improve the readability of > the script. > Also, I did not understand your comment, "The command-line argument > approach is an > effective way to receive data input." > Could you explain is a more laymen term. > > #contents of the script file $ cat myscript.sh #!/bin/bash echo "First arg is username: $1" echo "Second arg is comment: $2" echo "Third arg is password: $3" #output of the script file $ bash myscript.sh Nikhilesh IAmADeveloper Password First arg is username: Nikhilesh Second arg is comment: IAmADeveloper Third arg is password: Password The above example illustrates receiving inputs from command line. Try printing the $0 value too and see what output you get? You will get a better understanding. If you still didn't get, feel free to ask. Thank you. Susarla Nikhilesh.

