Here's part of my input file...
Client: p0691t01
Backup ID: p0691t01_1089702189
Policy: NON_PROD_SOLARIS
Policy Type: Standard (0)
Proxy Client: (none specified)
Creator: root
.
.
.
All I need is to get the Client and Policy fields like this ...
p0691t01 NON_PROD_SOLARIS (single space in between is ok)
...and I tried piping it to
awk '$1 ~ /(^Client|(^Policy/'
but I end up with this...
Client: bkrdevapp07
Policy: NON_PROD_WINDOWS
Client: bkrdevarc03
Policy: PROD_WINDOWS
Client: bkrdevexc03
Policy: NON_PROD_WINDOWS
Client: bkrdevsql01
Policy: NON_PROD_WINDOWS
Would appreciate any and all suggestions.
Thanks!
630111
Client: p0691t01
Backup ID: p0691t01_1089702189
Policy: NON_PROD_SOLARIS
Policy Type: Standard (0)
Proxy Client: (none specified)
Creator: root
.
.
.
All I need is to get the Client and Policy fields like this ...
p0691t01 NON_PROD_SOLARIS (single space in between is ok)
...and I tried piping it to
awk '$1 ~ /(^Client|(^Policy/'
but I end up with this...
Client: bkrdevapp07
Policy: NON_PROD_WINDOWS
Client: bkrdevarc03
Policy: PROD_WINDOWS
Client: bkrdevexc03
Policy: NON_PROD_WINDOWS
Client: bkrdevsql01
Policy: NON_PROD_WINDOWS
Would appreciate any and all suggestions.
Thanks!
630111