[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    bug#11990: Tail does not behave as expected
From:       Pádraig Brady <P () draigBrady ! com>
Date:       2012-07-19 16:56:38
Message-ID: 50083C46.7090704 () draigBrady ! com
[Download RAW message or body]

tag 11990 + notabug
close 11990
thanks

On 07/19/2012 04:25 PM, Rodolfo Aramayo wrote:
> Version:tail (GNU coreutils) 8.17
> 
> Please take a look at this output:
> 
> 259$ tail supercont10r12_01_wt_-fasta.gff3
> Supercontig_10.1 protein2genome:Proteins_wt protein_match 9766147
> 
> 260$ tail supercont10r12_0{1..2}_wt_-fasta.gff3
> ==> supercont10r12_01_wt_-fasta.gff3 <==
> Supercontig_10.1 protein2genome:Proteins_wt protein_match 9766147
> ==> supercont10r12_02_wt_-fasta.gff3 <==
> Supercontig_10.2 protein2genome:Proteins_wt match_part 4451411 4452067
> 
> 261$ tail -1 supercont10r12_01_wt_-fasta.gff3
> Supercontig_10.1 protein2genome:Proteins_wt match_part 9771037 9771263
> 
> 262$ tail -1 supercont10r12_0{1..2}_wt_-fasta.gff3
> tail: option used in invalid context -- 1
> 
> 
> This is not what I expected

Yes you need to use `tail -n1 ...` to get consistent results.
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-fails

cheers,
Pádraig.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic