Replacing new lines with spaces in zsh02 Feb 2023
Another one of those things I need to often do in zsh and never remember the syntax.
I had a multiline string (as returned by
fzf) and wanted to convert it into a single line, with spaces instead of spaces.
This was the right formula:
Tags : #zsh
Want to add something ? Feel free to get in touch on Twitter : @pixelastic