1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-13 20:19:03 -08:00
rc/sh/join2

10 lines
231 B
Text
Raw Normal View History

#!/usr/bin/env sh
# compat: +ash +bash +dash +zsh
join2() { ### @- join every other line.
# TODO: argc, also better interface that allows n file inputs without stdin.
paste -d" " - -
}
[ -n "${preload+-}" ] || join2 "$@"