0 How to pass arguments to a bash function? #!/bin/bash function foo() { # Hello echo "First Argument = $1" # World echo "Second Argument = $2" } foo Hello World bash 18 scripting 3 function 1 Please enable JavaScript to view the comments powered by Disqus.