youralibaba
27th April 2010, 07:40 AM
I want to write a script to count the # of regular users (ID > 1000) and special users(ID >1 <100) in linux.
#! /bin/bash
cat /etc/passwd | cut -f3 -d':' | wc -w
plz correct the script.
#! /bin/bash
cat /etc/passwd | cut -f3 -d':' | wc -w
plz correct the script.