I have a code in a file named main.sh:
#!/bin/bash
function hello() {
echo $1
}
I want to call it from command line like this:
main hello teddy
and it should output like hello teddy. Is that possible?. If yes, Please tell me. Thank you in advance