On Fri, 8 Aug 2014 15:35:44 -0500, Paul Gilmartin 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".
>

This option for "head" works on Linux, to strip the last line:

 head -n-1
and also:
 head -n -1

but it doesn't work on Unix System Services, or IBM's AIX either.

Bill

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to