[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getting head: illegal line count -- -31
On 08/15/14 19:40, Alex Jurkiewicz wrote:
> On 16 August 2014 12:00, Chris Moore wrote:
> You mean $((X+1)), not $(X+1), right?
>
> In this case the values are hardcoded, so Colin was just warning about the
> off-by-one counting difference between these two (functionally identical)
> commands:
> head -n -31
> tail -n +32
You're both right: I was warning that the hard-coded value would need to be
adjusted due to the off-by-one difference between head and tail, but I had
indeed intended to write it in valid shell syntax. ;-)
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid