[HPADM] Scripting user list
- From: brian irvin <brian944us@xxxxxxxxx>
- Date: Thu, 27 Aug 2009 07:47:57 -0700 (PDT)
Greetings!
i want to exclude certain ID's from the logins command to execute some_command. Here is the format of the ID's that i want to EXCLUDE (id's of the type 2letters, 4 nos, and 2 letters, 3 nos and one letter).
i currently have this script
logins -u | while read USERID X
do
[ "${USERID}" = logins -u |grep -q -E '^[a-zA-Z]{2}[0-9]{3}[a-zA-Z0-9]$' ] && continue
echo ${USERID}
done
This would echo all id of the format mentioned above. Now i want a script that would EXCLUDE all id's of this format and print the rest of the ID's (like oracle, dba, oradba10 etc..)
Please help
Thanks
Brian.
Brian.
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx
Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
- Prev by Date: [HPADM] inittab order of execution
- Next by Date: [HPADM] sdsadmin ?
- Previous by thread: [HPADM] inittab order of execution
- Next by thread: [HPADM] sdsadmin ?
- Index(es):
Relevant Pages
|