" > /tmp/pastebin.sh.tmpx while IFS= read -r line; do echo "$line" >> /tmp/pastebin.sh.tmpx; PLINES=$(($PLINES 1)); done ## exit if only whitspaces are input if test -z "$(sed '1d;/^$/d' /tmp/pastebin.sh.tmpx)"; then echo -e 'usage :: `foo | pastebin.sh [-f]`'; exit; fi ## exit when input less then 5 lines and -f option omitted if [ $PLINES -lt "5" ] &