Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


sh/join-lines (239 bytes)

1 # Removes all newlines from the input stream, like holding J on line 1 in vi.
2 paste -sd '\0' -
3 
4 # POSIX note:
5 # need the - to read from stdin on BSD
6 # posix requires '\0' "no separator". It isn't null-terminated!
7 # paste -s is the GNU way