feature request: -0 option for tr (original) (raw)

[Top][All Lists]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Craig Sanders
Subject: feature request: -0 option for tr
Date: Sun, 28 Jun 2009 11:20:59 +1000
User-agent: Mutt/1.5.19 (2009-01-05)

please add a -0 option to tr, which is equivalent to running:

tr '\n' '\000'

this is a useful command for converting \n-terminated input lines to null-terminated strings suitable for feeding into 'xargs -0' as many programs can not generate null-terminated ouput by themselves.

it would also be useful if tr did this automatically if invoked as 'print0'.

craig

-- craig sanders <address@hidden>