gotfish wrote:
Hello,
En deux mots, mon probleme :)
Pour ceux qui savent de quoi je parle, je suis logge en console sur une machine qui devrait faire office de firewall proprietaire (IPSO)
Aux travers de cette connection console, je dois geenrer une paire d'encryption pour ma machine. Cela ressemble donc a ceci:
-----BEGIN CERTIFICATE----- DDAKBgNVBAsTA01TUzEfMB0GA1UEAxMWZHBzLXNpdGEtZGVucC1pZC1oYW MB4GCSqGSIb3DQEJARYRYWxlcnRzQG5ldHJleC5jb20wHhcNMDQwOTIyMT <cut> aWExEDAOBgNVBAcTB0F0bGFudGExDDAKBgNVBAoTA0lTUzEMMAoGA1UECx MR8wHQYDVQQDExZkcHMtc2l0YS1kZW5wLWlkLWhhZncxMSAwHgYJKoZIhv -----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE3-CBC,09F10785F55478E0B bzpIXprWmivJbGhVklsfGNvW/uQs/n1Mh4Qo7pGHTY4uU2FUJALL/Fv/Ktif4EED <cut> qbySausY7BTR1N3XwdxcwZ4lNG4peuvVCwgJIewIEkRcLgRMHNZ4gmIPgTIfFpZs +KiUp/otEeyKdwsjsjWHTAbZ37PBX9xJXT8LAXBqn3VoKFb2/3mcLw== -----END RSA PRIVATE KEY-----
En copiant collant ce truc, j'attrape toujours des blancs style: (les "." repensentent des espaces)
-----BEGIN CERTIFICATE-----......................... DDAKBgNVBAsTA01TUzEfMB0GA1UEAxMWZHBzLXNpdGEtZGVucC1pZC1oYW.....
Je voudrais bien passer dans un script que je vais nommer ici clean_up.sh le fichier en argument qui contient ces clefs et certifications a fin d'en eliminer les blancs inutiles :)
Comment faire cela?
Merci de vos conseils,
/robert _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech
tr -d ' ' < original > filtré
devrait faire l'affaire
Alain
--
------------------------------------------------------------
Dr Alain EMPAIN <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Bioinformatics, Molecular Genetics, Fac. Med. Vet., University of Liège, Belgium
Bd de Colonster, B43 B-4000 Liège (Sart-Tilman)
WORK: +32 4 366 3821 FAX: +32 4 366 4122
HOME: rue des Martyrs,7 B- 4550 Nandrin +32 85 51 23 41 GSM: +32 497 70 17 64
--------------------------------------------------------------------------------
"I worry about my child and the Internet all the time, even though she's
too young to have logged on yet. Here's what I worry about. I worry that
10 or 15 years from now, she will come to me and say 'Daddy, where were
you when they took freedom of the press away from the Internet?'" --Mike Godwin, Electronic Frontier Foundation --------------------------------------------------------------------------------
_______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: chat.unixtech.be:6667 - #unixtech