Hi,
you might want to post this in the HP-UX form.
forum51
However why can't you simply do a
swlist > file
looking at the output of swlist ( the short display ) it appears the format is
product version full description ....
I came up with is to put a , between the 3 pieces the problem is full description can be many words long.
swlist | egrep -v '^#|^ *$' | awk '{ printf("%s,%s,",$1,$2 ); for( x = 3 ; x <= NF ; x ++ ) { printf ("%s ",$x); } printf("\n"

; }'
and the output looks like....
B9788AA,1.3.1.02.01,Java 2 SDK 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On
B9789AA,1.3.1.02.01,Java 2 RTE 1.3 for HP-UX (700/800), PA1.1 + PA2.0 Add On
BUNDLE,B.11.00,Patch Bundle
BUNDLE11i,B.11.11.0102.2,Required Patch Bundle for HP-UX 11i, February 2001
Base-VXVM,B.03.20.1,Base VERITAS Volume Manager 3.2 for HP-UX
CDE-English,B.11.11,English CDE Environment
and now you have a .CSV file which you can load into excel or easily compare to other .CSV files.