Break a string apart using a delimiter.
Section: Strings and Formatting
Split string into array
bash
bash
echo 'alice,bob,carol' | jq 'split(",")'Explanation
jq can move fluidly between strings and arrays.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Strings and Formatting