Annotation of coherent/c/etc/newusr, revision 1.1

1.1     ! root        1: sort -n '-t:' +2 -3 -o /etc/passwd /etc/passwd
        !             2: uid=`tail -1 /etc/passwd | sed -n "s/[^:]*:[^:]*:\\([^:]*\\).*/\\1/p"`
        !             3: 
        !             4: while expr $# "!=" "0" > /dev/null
        !             5: do
        !             6:        if grep "$1:.*" /etc/passwd
        !             7:        then
        !             8:                echo "user name '$1' already taken"
        !             9:                shift
        !            10:        else
        !            11:                uid=`expr $uid "+" "1"`
        !            12:                echo "$1::$uid:5::/u/$1:/bin/sh" >> /etc/passwd
        !            13:                mkdir /u/$1
        !            14:                chown $1 /u/$1
        !            15:                shift
        !            16:        fi
        !            17: done

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.