I did try right after your responded first. It is not working.
root@admin10:/tmp:-)awk 'FNR==1{split($0, titles, '[^]'); next} {for (i=1; i<=NF; i++) print titles[i] " : " $i;}' /tmp/file10
syntax error The source line is 1.
The error context is
FNR==1{split($0, titles, >>> [ <<<
awk: The statement cannot be correctly parsed.
The source line is 1.
root@admin10:/tmp:-)cat /tmp/file10
hostname^Enclosure^Company^Model^Host^IP^Datacenter^CPU^RAM
hostname1^ENC0009^Company1^rx8640^^10.130.120.10^Datacenter1^4^64G
root@admin10:/tmp:-)
When I made slight change inside split , no error , however it is still not there yet:
root@admin10:/tmp:-)awk 'FNR==1{split($0, titles, "\^"); next} {for (i=1; i<=NF; i++) print titles[i] " : " $i;}' /tmp/file10
hostname : hostname1^ENC0009^Company1^rx8640^^10.130.120.10^Datacenter1^4^64G
root@admin10:/tmp:-)