mirror of
https://github.com/notwa/rc
synced 2024-11-05 16:09:03 -08:00
12 lines
241 B
Text
12 lines
241 B
Text
|
#!/usr/bin/env sh
|
||
|
# YES_ZSH
|
||
|
# YES_BASH
|
||
|
# YES_DASH
|
||
|
# YES_ASH
|
||
|
|
||
|
unwrap() { ### @- join paragraphs into one line each.
|
||
|
awk '\''BEGIN{RS="\n\n";FS="\n"}{for(i=1;i<=NF;i++)printf "%s ",$i;print "\n"}'\'
|
||
|
}
|
||
|
|
||
|
[ -n "${preload+-}" ] || unwrap "$@"
|