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
-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
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
-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