Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Section - 1.408: Where is the 'nawk' command on my AIX system?

( Part1 - Part2 - Part3 - Part4 - Part5 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]


Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.407: Why is my environment only loaded once?
Next Document: 1.410: Why can't I set my default shell to one we've just installed?
See reader questions & answers on this topic! - Help others by sharing your knowledge

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

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.407: Why is my environment only loaded once?
Next Document: 1.410: Why can't I set my default shell to one we've just installed?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)





Last Update March 27 2014 @ 02:11 PM