[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: one last...
> My goal here is to get lines from /etc/passwd that do not have a UID that
> is already in the $NEW file.
Can you chill out for a while, now? I'm trying to get some work done. :)
while read LINE1; do
ID1=$(echo $LINE1 | cut -d':' -f3)
while read LINE2; do
ID2=$(echo $LINE2 | cut -d':' -f3)
if [ $ID1 = $ID2 ]; then
done < $NEW
if [ $FLAG -eq 0 ]; then
echo $LINE1 >> $NEW
done < $OLD
To unsubscribe, send email to email@example.com with
"unsubscribe luci-discuss" in the body.