weechat/bin/wee: refactor

This commit is contained in:
Henrik Lissner 2017-01-03 03:31:26 -05:00
parent 1faf64ad3d
commit 3eba54ab33

View file

@ -13,8 +13,7 @@ rd() {
if [ -t 0 ]; then
cat $@
else
while read -r line
do
while read -r line; do
echo $line
done
fi | sed '/^ *\(#\|$\)/ d;s/^/*/g'