In message <[EMAIL PROTECTED]>, write s: >I'm modifying the pinepgp scripts to work with PGP 5.0... the output is >somewhat different then the previous version. Anyhow I'm new to these >programs and heres the output: > >Good signature made 1997-08-06 15:10 GMT by key: > 1024 bits, Key ID 8C111B46, Created 1997-08-06 > "Paul A. Miller <[EMAIL PROTECTED]>" > >I want it transformed into: > >Good signatuure by Paul A. Miller <[EMAIL PROTECTED]> > >Anyone have any ideas? > awk -F\" '/^Good/{printf("Good signature by ")} /^ *"/{print $2}'
Example: $ echo 'Good signature made 1997-08-06 15:10 GMT by key: > 1024 bits, Key ID 8C111B46, Created 1997-08-06 > "Paul A. Miller <[EMAIL PROTECTED]>"'| awk -F\" '/^Good/{printf("Good signature by ")} > /^ *"/{print $2}' Good signature by Paul A. Miller <[EMAIL PROTECTED]> -- Oliver Elphick [EMAIL PROTECTED] Isle of Wight http://lfix.co.uk/oliver Make it idiot-proof, and someone will breed a better idiot. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .