Split a string on a delimiter
Splits a string into a list of substrings on each occurrence of
sep. If sep is empty, splits into individual
characters. Works transparently on ShellResult values (splits
stdout).
String): | ShellResult The string
to split.String): The delimiter to split
on.Returns: A list of substrings.
str_split("a,b,c", ",")
-- Returns = ["a", "b", "c"]
files = ?<{ls}>; str_split(files, "\n")