|
|
1.1 root 1: # magic machine
2: if test $# != 1
3: then
4: echo magic machine-name
5: exit
6: fi
7: x=a$$
8: trap "rm *$$" 0 1 2 15
9: rx $1 cat /etc/passwd > a$$
10: awk -F: '{print $1, $3} ' a$$ > b$$
11: awk -F: '{print $1, $3, $4}' /etc/passwd > c$$
12: sort -o b$$ b$$
13: sort -o c$$ c$$
14: join b$$ c$$ | egrep -v '^root|uucp' > d$$
15: awk '$3 != 0 {print "((" $2, "1) (" $3, $4 ")) #", $1}' d$$ > magic-done
16: echo -n lines for $1; wc -l magic-done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.