[HPADM] [ SUMMARY : SHELL QUESTION ]

From: AAghada@anb.com.sa
Date: Wed Aug 28 2002 - 04:41:54 EDT


Thank you very much to following experts:

BAKHSHESH Kazem
Richard Wright
Eef Hartman
Edward
Sohr, James
TOTSCH,DAVID
Glass, David (UDB)

Most of them pointed out Quote problem. and suggested usage simillar to
this.
here's one the post.
-----------------------------
TOTSCH,DAVID

We have to get the shell to interpret it before awk receives it. Single
quotes tell the shell to keep it's hands off. So your code needs to
surround
what awk is to see with single quotes and the stuff outside the quotes is
interpreted by the shell.

 awk '{ if (('$SHELL_Variable1' < $1) && ('$SHELL_Variable2' > $2))
print "something" }'

This looks like I put single quotes around $SHELL_Variable1, but in
reality,
'{ if ((' is quoted, so the shell replaces $SHELL_Variable1.
-----------

Really appreciate your kind answers.

Thanks,
Abhinn.
Unix Administrator, KSA.
cell +96657255468.

--
             ---> 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:18 EDT