Extract Content of Multi-part Uuencoded Binaries

I’ve been looking for a simple way to extract parts of a uuencoded file and stumbled over an old sed paper covering sed one-liners.

However, Use sed to extract multi-part uuencoded binaries and to remove extraneous header info, so that only the uuencoded portion remains. Files passed to sed must be passed in the proper order.
sed '/^end/,/^begin/d' file1 file2 ... fileX | uudecode

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s