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 if [ -t 0 ]; then
cat $@ cat $@
else else
while read -r line while read -r line; do
do
echo $line echo $line
done done
fi | sed '/^ *\(#\|$\)/ d;s/^/*/g' fi | sed '/^ *\(#\|$\)/ d;s/^/*/g'