github.com/NeowayLabs/nash@v0.2.2-0.20200127205349-a227041ffd50/examples/len.sh (about) 1 #!/usr/bin/env nash 2 3 echo "args: " 4 echo $ARGS 5 6 if len($ARGS) == "1" { 7 echo "one parameter passed" 8 } else { 9 echo "more parameters passed" 10 }