account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGsaIldePAc4Z6GhKIFWFIPEyDFxXpm6xGKeh8GchquxqTHvnz4NQceOOz6pGnjOb8hL+YQhDjqOY5Dfo2O2gZgDNLt/dO6NCPO+Wgx3FDu+44pZCUlEI0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|20110101
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGsaIldePAc4Z6GhKIFWFIPEyDFxXpm6xGKeh8GchquxqTHvnz4NQceOOz6pGnjOb8hL+YQhDjqOY5Dfo2O2gZgDNLt/dO6NCPO+Wgx3FDu+44pZCUlEI0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGsaIldePAc4Z6GhKIFWFIPEyDFxXpm6xGKeh8GchquxqTHvnz4NQceOOz6pGnjOb8hL+YQhDjqOY5Dfo2O2gZgDNLt/dO6NCPO+Wgx3FDu+44pZCUlEI0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|20120101
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGsaIldePAc4Z6GhKIFWFIPEyDFxXpm6xGKeh8GchquxqTHvnz4NQceOOz6pGnjOb8hL+YQhDjqOY5Dfo2O2gZgDNLt/dO6NCPO+Wgx3FDu+44pZCUlEI0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-gnu-utils@gnu.org>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
[user@centos6 sedtest (0)]$ cat input.file
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGsaIldePAc4Z6GhKIFWFIPEyDFxXpm6xGKeh8GchquxqTHvnz4NQceOOz6pGnjOb8hL+YQhDjqOY5Dfo2O2gZgDNLt/dO6NCPO+Wgx3FDu+44pZCUlEI0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|20110101
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGsaIldePAc4Z6GhKIFWFIPEyDFxXpm6xGKeh8GchquxqTHvnz4NQceOOz6pGnjOb8hL+YQhDjqOY5Dfo2O2gZgDNLt/dO6NCPO+Wgx3FDu+44pZCUlEI0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|
[user@centos6 sedtest (0)]$
[user@centos6 sedtest (0)]$ sed 's/\(^account.*a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee.*|\).*$/\120120104/g' input.file
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c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I0ZTFpA531Kl1k/P91DARmAgQiqE/ZZOp8k8Mj2rA== Hello on platform|20120104
account|/home/account/.ssh/authorized_keys2|LINE2|a8:10:9b:ff:ff:ff:5f:dc:02:50:9d:2c:22:be:ee:ee|Hello on platform |from="remote.host.com" ssh-dss AAAAB3NzaC1kc3MAAAEBAIWrZa2od1PF2zvwTNeDg+p2sb46/rOh0FWBxUqM9PO2wvmBreakthekeynPlDcmY3cQclJDEOFUQMkXRUa1TgTrt338vdds9HkwBreaktheKey4edj6hfviF0TbfdNEDPAap1CVIQdJe37CcLVBreakTheKeyfKvSmhtSWTqjVv2kUNX5DvWGWimc9vW5hNdAaT/X7aIERZmLrl9NGjQ2qe3HYJXRy7scvTdH92gQCxP6+NWeneAHYZNqV9GxfaS5r6Mvau9L+th/it90x2ulnotworkingkeyA8BoJD/ASBRZR20+pnaTllGQwjpS8Kz4WCCsVhi6gGi1E7oSYrSkAAAAVAPeeZjOCWI9+YTOsmm9434IJRJIrAAABADyKD8xmwNcZzXfxXWf//wvixpPRfP7W51rHjQcvbNgLQDt6uc1wCGP29YCz96j59LuIxmDPBpzHjvY2eFv+EHPNKDPB24Jn7CbwxNh/h2E5MdU2Ipu8Mq9vtxrIugy9HlKUvPY/r35PiqDOvIXs7lv//S/NE4RErZ7+y6VhdpAYJZtuMYTHq6OEg0lVGNZtKsEb40+gKjdAVsbpd95pxlyBzCdeVYWF0PsOwC5Vqjdid4yO2wPvr/I+Q3ULLLVpvNpE3QquNT2I8ZFXTVvxKA9jTBpyJDjDiYX+xkSCzmJ5SR9vq3cSTbp24ONmRyV7grg0Adkv9q2yXIaJZN2SawAAAAEAOVlDx+GzVr/8Tc4RGzneetP6WSs+S4+bYqDpJiXF8i6L3Eg6l0jIxjGSuR1C2pMylN74DzX14rOyal+u0hQ7836HaGZ1Hg8Yq/0r3hHLmRWTU4Fmw24Ri9qNg9uFikh3Z21QfVzu2hvyn3CMpDBv+UY977bmeWAaADo/IIaFA0jNQFiJgZPCG36e5lGs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