[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed/grep script help



In message <[🔎] Pine.LNX.3.96.970806175000.13815C-100000@imagine.tcimet.net>, 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 <paul@imagine.tcimet.net>"
  >
  >I want it transformed into:
  >
  >Good signatuure by Paul A. Miller <paul@imagine.tcimet.net>
  >
  >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 <paul@imagine.tcimet.net>"'|
awk -F\" '/^Good/{printf("Good signature by ")}
> /^ *"/{print $2}'
Good signature by Paul A. Miller <paul@imagine.tcimet.net>

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
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
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: