I have to select a field ($8) from file1, then add an entry to the file2 in the correct format:
/tmp> cat file1
3001-233 Invalid admin value in /etc/security/group for "imnadm"
3001-233 Invalid admin value in /etc/security/group for "perfmon"
3001-233 Invalid admin value in /etc/security/group for "extract"
3001-233 Invalid admin value in /etc/security/group for "vality"
3001-233 Invalid admin value in /etc/security/group for "profadm"
3001-233 Invalid admin value in /etc/security/group for "db2asgrp"
3001-233 Invalid admin value in /etc/security/group for "db2adm"
/tmp> cat file2
system:
admin = true
staff:
admin = false
bin:
admin = true
Any ideas?
Thanks.
/tmp> cat file1
3001-233 Invalid admin value in /etc/security/group for "imnadm"
3001-233 Invalid admin value in /etc/security/group for "perfmon"
3001-233 Invalid admin value in /etc/security/group for "extract"
3001-233 Invalid admin value in /etc/security/group for "vality"
3001-233 Invalid admin value in /etc/security/group for "profadm"
3001-233 Invalid admin value in /etc/security/group for "db2asgrp"
3001-233 Invalid admin value in /etc/security/group for "db2adm"
/tmp> cat file2
system:
admin = true
staff:
admin = false
bin:
admin = true
Any ideas?
Thanks.