[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more bash questions





Or, you could do it like this:


#!/bin/bash

while read USER; do
        if [ ${#USER} -gt 0 ]; then
                echo $USER >> /tmp/allow.users
        else
                echo "Thank you." 
                break
        fi
done 


--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.