On Thu, Jun 21, 2018 at 11:05 AM, Abel Abraham Camarillo Ojeda <acam...@verlet.org> wrote: > $ cat file | perl -ne 'BEGIN { $/ = \1 } print if $. <= 5; exit 0 if $. == 5'
This is much slower than 'dd ibs=1'
On Thu, Jun 21, 2018 at 11:05 AM, Abel Abraham Camarillo Ojeda <acam...@verlet.org> wrote: > $ cat file | perl -ne 'BEGIN { $/ = \1 } print if $. <= 5; exit 0 if $. == 5'
This is much slower than 'dd ibs=1'