mirror of
https://github.com/notwa/rc
synced 2024-11-13 19:59:02 -08:00
9 lines
271 B
Bash
Executable file
9 lines
271 B
Bash
Executable file
#!/usr/bin/env sh
|
|
# compat: +ash +bash +dash +hush +ksh +mksh +oksh +osh +posh +yash +zsh
|
|
|
|
join2() { ### @- join every other line.
|
|
# TODO: argc, also better interface that allows n file inputs without stdin.
|
|
paste -d" " - -
|
|
}
|
|
|
|
[ -n "${preload+-}" ] || join2 "$@"
|