fork download
  1. #!/bin/bash
  2. LINE=foo,bar,,baz
  3. IFS=, array=($LINE)
  4. printf '>>%s<<\n' "${array[@]}"
Success #stdin #stdout 0s 5356KB
stdin
Standard input is empty
stdout
>>foo<<
>>bar<<
>><<
>>baz<<