I've discussed the requirements in a bit more detail and the project manager is concerned about multiple shells being launched.
directhex, i'm getting a syntax error when I try to use the awk-only example:
Code:
awk: syntax error near line 1
awk: illegal statement near line 1
#
My test script contains:
Code:
# !/bin/sh
cat kernel.txt | awk '$NF~/\(.*\)/{gsub(/[()]/, "", $NF); print $NF "\t" $1}'
A sample from kernel.txt contains:
Code:
*
* Utsname Tunables
*
5.10 release (REL)
columbia node name (NODE)
SunOS system name (SYS)
Generic_127111-01 version (VER)
*
* Process Resource Limit Tunables (Current:Maximum)
*
0x0000000000000100:0x0000000000010000 file descriptors
*
* Streams Tunables
*
9 maximum number of pushes allowed (NSTRPUSH)
65536 maximum stream message size (STRMSGSZ)
1024 max size of ctl part of message (STRCTLSZ)
Any ideas?