[dmd-internals] Failed dmd tests

Andrei Alexandrescu andrei at erdani.com
Sun Jan 30 09:01:42 PST 2011


On 01/30/2011 10:51 AM, Michel Fortin wrote:
> Le 2011-01-30 à 11:28, Jason House a écrit :
>
>> Try "tail -n 1"
>
> That'll give me the last line of the file. What "head -n-1" should do is give me the whole file minus the last line.

I recall that is a nonstandard gnu extension of head. It could be 
simulated with

head -n $(( `wc -l < file` - 1 )) file


Andrei


More information about the dmd-internals mailing list