On 11/5/18 10:17 PM, Philip Rowlands wrote:
> On Mon, 5 Nov 2018, at 20:30, Luiz Angelo Daros de Luca wrote:
>>
>> Once head read enough bytes to satisfy -c option, it stops reading input
>> and quit.
>> This is different from what -n does and it is also different from both
>> FreeBSD and busybox h
On Mon, 5 Nov 2018, at 20:30, Luiz Angelo Daros de Luca wrote:
>
> Once head read enough bytes to satisfy -c option, it stops reading input
> and quit.
> This is different from what -n does and it is also different from both
> FreeBSD and busybox head implementation.
>
> With GNU Coreutils head:
Hello,
Once head read enough bytes to satisfy -c option, it stops reading input
and quit.
This is different from what -n does and it is also different from both
FreeBSD and busybox head implementation.
With GNU Coreutils head:
$ echo -e "123\n456\n789" | { head -n 1; while read a; do echo "-$a-"