[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: head,tail: -z, --zero-terminated
From: |
Stephane Chazelas |
Subject: |
Re: RFE: head,tail: -z, --zero-terminated |
Date: |
Mon, 28 Sep 2015 15:17:47 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
2015-09-26 15:43:40 +0100, Richard Russon:
> I'd like to add an option to both head and tail,
> to allow them to work with NUL-terminated lines of text
> -z, --zero-terminated
>
> Thus allowing:
>
> find dir -type f -print0 | head -z -n 10 | xargs -0 command
[...]
See also
sed -z 10q
as an alternative to
head -zn 10
While we're at it, why not add it to every text utility (cut,
paste, seq, yes, tac...) for those that don't have it already?
--
Stephane
- RFE: head,tail: -z, --zero-terminated, Richard Russon, 2015/09/26
- Re: RFE: head,tail: -z, --zero-terminated, Pádraig Brady, 2015/09/26
- Re: RFE: head,tail: -z, --zero-terminated, Bernhard Voelker, 2015/09/27
- Re: RFE: head,tail: -z, --zero-terminated,
Stephane Chazelas <=