mirror of
https://github.com/notwa/rc
synced 2024-11-05 15:49:02 -08:00
13 lines
241 B
Text
13 lines
241 B
Text
|
#!/usr/bin/env sh
|
||
|
# YES_ZSH
|
||
|
# YES_BASH
|
||
|
# YES_DASH
|
||
|
# YES_ASH
|
||
|
|
||
|
join2() { ### @- join every other line.
|
||
|
# TODO: argc, also better interface that allows n file inputs without stdin.
|
||
|
paste -d" " - -
|
||
|
}
|
||
|
|
||
|
[ -n "${preload+-}" ] || join2 "$@"
|