Re: How do I pad files in Linux?
On Sat, 29 Jun 2013 14:23:51 -0400 (EDT), Stan Hoeppner wrote:
> On 6/29/2013 12:19 PM, Tixy wrote:
>>
>> truncate -s %80 FILENAME
>>
>> Will pad with zero's to round size up to a multiple of 80.
>
> That'll teach me to read all posts before replying. Question:
>
> Does this append ASCII zeros to the end of the file, or nulls? Stephen
> asked for nulls, and you state "zero's" above.
It appends hex zeros (0x00), or nulls. Also known as ^@ characters.
The ASCII zero is 0x30.
--
.''`. Stephen Powell
: :' :
`. `'`
`-
Reply to: