[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
The /bin/nawk that exists on many UNIX flavors is a superset of the 'awk' command, revised by the same original authors to include added functionality. All the extra options normally associated with 'nawk' on other UNIXes have been incorporated into the AIX version of 'awk'; the AIX 'awk' InfoExplorer or man pages include nawk-specific features such as the "-v" command line option and atan2(), rand(), srand(), match(), sub(), gsub(), system(), close(), getline functions. If your AIX version is missing /bin/nawk (as are most AIX 3.x versions), the simplest way to get around this and maintain script portability between UNIX platforms is to make a /bin/nawk link to /bin/awk (as root, of course). If you do not have root privilege or do not want to create a /bin/nawk link, to make the script work on different UNIXes, you may have to test `uname` first and set all 'nawk' references on AIX runs to /bin/awk. If your script is to only run on AIX systems, you can just change all references of 'nawk' to 'awk' and everything should still work okay...but check the AIX awk script on test data prior to making actual runs. [Editor's note: AIX 4.x already contains a link from /usr/bin/nawk to /usr/bin/awk.] ------------------------------ 1.409: How do I copy InfoExplorer (manpages and more) to my hard drive? From: David Alexander <unilink@online.rednet.co.uk> [Editor's note: While this is documented in one of the AIX manuals and covered in /usr/lpp/bos/bsdadm (AIX 3 only), it comes up often enough I thought I would include it here.] Not all the Info databases are required, so do not copy them all unless the customer specifically requests them, or has asked for the software they refer to. These instructions assume you have enough space on /usr. Install and mount the InfoExplorer CD-ROM as for use of Info from CD-ROM. Log in as Root umount /usr/lpp/info/lib/$LANG mkdir /mnt/$LANG mount -v cdrfs -r /dev/cd0 /mnt/$LANG cd / cd /mnt/$LANG cp -r aix /usr/lpp/info/lib/$LANG cp -r aix2 /usr/lpp/info/lib/$LANG cp -r compnav /usr/lpp/info/lib/$LANG cp -r hardware /usr/lpp/info/lib/$LANG cp -r nav /usr/lpp/info/lib/$LANG cp -r prog /usr/lpp/info/lib/$LANG cp -r uiprog /usr/lpp/info/lib/$LANG Other sections can be copied if required: Section Size cp -r ada /usr/lpp/info/lib/$LANG 7.2 Mb cp -r assemb /usr/lpp/info/lib/$LANG 5.23 Mb cp -r cxx /usr/lpp/info/lib/$LANG 6.52 Mb cp -r dce /usr/lpp/info/lib/$LANG 3.8 Mb cp -r encina /usr/lpp/info/lib/$LANG 2.67 Mb cp -r fortran /usr/lpp/info/lib/$LANG 6.85 Mb cp -r graph /usr/lpp/info/lib/$LANG 9.75 Mb cp -r graph2 /usr/lpp/info/lib/$LANG 4.1 Mb cp -r pascal /usr/lpp/info/lib/$LANG 3.23 Mb umount /mnt/$LANG eject the CD-ROM
Send corrections/additions to the FAQ Maintainer:
Last Update May 13 2007 @ 00:21 AM