I will include some more general aspects in my reply:
Quote:
Originally Posted by
bdizenhouse
I have now been asked to also provide a count of the results.
You have line-oriented output, yes? "wc -l" counts lines ...
Quote:
I want to make sure I'm only looking at local filesystems only.
You chose a way of iteratively selecting all the local ones: fstype=jfs, fstype=jfs2, ... . This is possible but such problems can be solved from both sides, though: either by including everything you need or by excluding everything you do
not need. "All local filesystems" is the same as "all non-remote filesystems", yes?:
find ....... ! -fstype nfs
Means "all filesystems except nfs", which should be what you want. This would include not only jfs and jfs2 but also some more obscure FS types, which also exist.
Quote:
Also how can I suppress the messages like "ls: 0653-341 The file xxx does not exist." or "find: 0652-019 The status on xxx is not valid.
This comes because you issue "find" under your user id and your user is probably not allowed to access everything. This would probably be different if you issue the command as root user. Anyways, the error messages go to a separate I/O channel in UNIX (to <stderr>), which only per default points to the same output device as <stdout>. You can safely redirect the error messages (and only them) with putting your valuable output in jeopardy:
find ..... 2> /dev/null
redirects the outcome of the <stderr> file descriptor to /dev/null, the big bit bucket instead of /dev/yourpseudoterminal, where it clutters your screen.
I hope this helps and, btw.: we have a great and very active AIX special interest group here in the forum, which i by now would like to shamelessly advertise. I am looking forward to see you there.
bakunin