github.com/NeowayLabs/nash@v0.2.2-0.20200127205349-a227041ffd50/internal/sh/builtin/testdata/split.sh (about) 1 #!/usr/bin/env nash 2 3 var word = $ARGS[1] 4 var sep = $ARGS[2] 5 var output <= split($word, $sep) 6 for o in $output { 7 echo $o 8 }