On Fri, 8 Aug 2014 15:35:44 -0500, Paul Gilmartin <[email protected]> wrote:

>On Fri, 8 Aug 2014 09:14:33 -0500, Bill Godfrey wrote:
>>>
>>Under OMVS on z/OS you can convert data to base64 with the "uuencode -m" 
>>command. ...
>> 
>This appears to be POSIX, so should be available on most systems.  (But I 
>needed to
>install it for Ubuntu Linux.)
>
>> ... The "-m" switch makes it use base64 instead of its normal form of 
>> encoding. You just have to strip off or ignore the first and last line of 
>> the result if you only want the base64 part.
>>
>"tail +2" (not +1!?  "Fencepost error".) strips off the first line.  Is there 
>a utility
>to strip the last line?  There seems to be no corresponding option for "head".
>
There's always sed -e '$d', and if you're going to use sed, have it take care 
of the first line too with sed -e '1d;$d'

Or, since the last line is always "====", use grep -v "^===="

Bill

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to