Skip to main content

lines

Split a string into an array of lines.


Examples

Split /etc/passwd into lines:

file("/etc/passwd").content.lines