P
postcd
Guest
Dear members im having text file which contains 1 or 2 base64 blocks of code. Following is part of the file and 1 base64 block.
Being on Linux, which command i can do to extract first base64 out of the file? My aim is to decode output to be readable
---------
Example file decode command: http://superuser.com/a/663397
Example phrasse decode command: http://askubuntu.com/a/178546
but i do not know how to extract only the base64 phrasse out of file which also contains non base64 contents.
Content-Transfer-Encoding: base64
RGVhciBMdWlzLA0KICANCkdvb2QgbW9uaW5nIQ0KT3VyIEJhbmsgYWNjb3VudCBpcyB1bmRlcmdvaW5nIGF1ZGl0IGZvciB0aGUgZmlzY2FsIHllYXIgYXMgcmVxdWlyZWQgYnkgdGhlIGNoaW5hIGZvcmVpZ24gY3VycmVuY3kgY29udHJvbCBwb2xpY3kgYW5kIHRoZSBhY2NvdW50IHdpbGwgbm90IGJlIGF2YWlsYWJsZSB1bnRpbCB0aGUgQ2hpbmVzZSB0YXggYnVyZWF1cyBhcmUgc
2F0aXNmaWVkIHRoYXQgYWxsIGFwcGxpY2FibGUgdGF4ZXMgaGF2ZSBiZWVuIHBhaWQgdXAuIFBsZWFzZSBob2xkIHBheW1lbnQgc28gaSBjYW4gZnVybmlzaCB5b3Ugd2l0aCBvdXIgcmV2aXNlZCBiYW5raW5nIGluZm9ybWF0aW9uLiAgDQoNCiAgDQpCZXN0IHJlZ2FyZHMNCiANCkRhdmlk
------=_Part_143209_644876817.1451544132767--
Being on Linux, which command i can do to extract first base64 out of the file? My aim is to decode output to be readable
---------
Example file decode command: http://superuser.com/a/663397
Example phrasse decode command: http://askubuntu.com/a/178546
but i do not know how to extract only the base64 phrasse out of file which also contains non base64 contents.