RE: awk and ksh question - solved

2003-02-04 Thread Koivu, Lisa
Title: RE: awk and ksh question - solved Stephen, I'm aware of the syntax. My question was, WHY?? Robert hit it on the head, awk and ksh are both interpreting $1. Anyway I solved the problem with shift, like this. Thanks to all that replied. export PAGER= export PAGERFILE=dba_oncall.txt

RE: awk and ksh question - solved

2003-02-04 Thread Stephen Lee
-Original Message- awk and ksh are both interpreting $1. - Not possible. One or the other will see $1, but not both. That's the problem with using quotes instead of assigning things to awk variables -- It makes reading the stuff confusing. FWIW, here

RE: awk and ksh question - solved

2003-02-04 Thread Stephen Lee
I thought I should add, if you wanted to comment out people in your pager list, you could do something like: sed 's/^[ ][]*//g; /^#/d' ${ADMIN_DIR/who_to_page | while read LINE; do PAGER_PERSON=${PAGER_PERSON},${LINE} Note: The brackets in the sed statement have a space and a

RE: awk and ksh question - solved

2003-02-04 Thread Stephen Lee
-Original Message- Those are the companies that you'd use the $HOME/.mailrc for. - Ah yes TMTOWTDI Since I have multiple scripts that do things and monitor things, the list of mail and/or pager recipients is different for different things, even within a