3 ms·
ps is a shell builtin in Nu (and you can check that with `which ps`). Going from Nu to raw text is currently a little awkward. `str collect (char nl)` will tak
by ripley12 5y ago
ps is a shell builtin in Nu (and you can check that with `which ps`).
Going from Nu to raw text is currently a little awkward. `str collect (char nl)` will take a Nu list of strings and convert it to raw text with line breaks. I suspect we'll get a more ergnomic way to do this soon.
Going to Nu from raw text is nicer, the built-in `lines` command splits line-break-delimited text into a list of strings. From there you can use lots of Nu tools to operate on each line.