From: Lal, Neeraj (neeraj_lal@mcgraw-hill.com)
Date: Mon Apr 05 2004 - 14:57:39 EDT
Hi
Thanks for a quick reply from
Javier Zayas
Totsch, David Lee
here is the script which worked for me as suggested by Javier
for i in `cat hrunixterm.txt | awk -F: '{ print $1 }'`
do
user=`grep -i $i pop | awk -F: '{ print $1 }'`
echo "USER TO BE DELETED $user" > lal
#deluser $user
rc=$?
if [[ $rc = 0 ]]
then
echo "USER DELETED SUCESSFULLY FROM SYSTEM AT `date`" >> lal
else
echo "USER DELETION FAILED `date`" >> lal
fi
done
-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl] On Behalf Of Lal, Neeraj
Sent: Monday, April 05, 2004 1:49 PM
To: hpux-admin@dutchworks.nl
Subject: [HPADM] script question for matching file on
the basis foeld
Hi Admin
A script question
I have a file havin employee no.
12345
33455
23334
and i have other file havind id & employee no
12789:rty_uio
22233:dfg_klm
12345:abc_lkj
22222:asd_lkj
23333:cvb_lkj
I have to match the file and take out the file with
matching employee no.
How it can be done thru script
_____
The information contained in this message is intended
only for the recipient, and may be a confidential attorney-client
communication or may otherwise be privileged and confidential and
protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering
this message to the intended recipient, please be aware that any
dissemination or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by replying to the message and deleting it from your computer.
Thank you,
The McGraw-Hill Companies
_____
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:40 EDT