
Urgent for KSH Gurus : matching source and target lists to create new one(ksh)
I am collecting process ids only with grepping into $new and process
all process ids and then save original list of process ids into $old,
this second time I have two lists $new (which has lastest process ids,
some may be new ones added) and $old (which holds process ids that I
have already processed) I am running
in look like this every 5 seconds 'while process.... true do sleep 5
done '
Now my question is, how I can get the latest list of process ids as
following in korn shell i.e.
$latest=($new-$old) # I don't want to process the old ids again
therefore
# $latest will have only process ids that need to
be
# processed.
Thanks very much in advance for your help.