Subject: Tail does not behave as expected

From: Rodolfo Aramayo <[email-masked]>
Date: Thu, 19 Jul 2012 10:25:05 -0500

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
9766861 1081 - . ID=Supercontig_10.1:hit:143093:96_0;Name=NCU10029T0
Supercontig_10.1 protein2genome:Proteins_wt match_part 9766600 9766861
1081 - . ID=Supercontig_10.1:hsp:281558:96_0;Parent=Supercontig_10.1:hit:143093:96_0;Target=NCU10029T0
1 87;Gap=F1 M87
Supercontig_10.1 protein2genome:Proteins_wt match_part 9766147 9766493
1081 - . ID=Supercontig_10.1:hsp:281559:96_0;Parent=Supercontig_10.1:hit:143093:96_0;Target=NCU10029T0
88 203;Gap=M116 R1
Supercontig_10.1 protein2genome:Proteins_wt protein_match 9768324
9770867 4208 + . ID=Supercontig_10.1:hit:143094:96_0;Name=NCU10030T0
Supercontig_10.1 protein2genome:Proteins_wt match_part 9768324 9768629
4208 + . ID=Supercontig_10.1:hsp:281560:96_0;Parent=Supercontig_10.1:hit:143094:96_0;Target=NCU10030T0
1 102;Gap=M102
Supercontig_10.1 protein2genome:Proteins_wt match_part 9768708 9770867
4208 + . ID=Supercontig_10.1:hsp:281561:96_0;Parent=Supercontig_10.1:hit:143094:96_0;Target=NCU10030T0
103 822;Gap=M720
Supercontig_10.1 protein2genome:Proteins_wt protein_match 9771037
9772118 1679 - . ID=Supercontig_10.1:hit:143095:96_0;Name=NCU10031T0
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771878 9772118
1679 - . ID=Supercontig_10.1:hsp:281562:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
1 80;Gap=F1 M80
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771339 9771812
1679 - . ID=Supercontig_10.1:hsp:281563:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
81 238;Gap=F1 M158 R1
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771037 9771263
1679 - . ID=Supercontig_10.1:hsp:281564:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
239 314;Gap=M76 R1
[10:20:07][raramayo][/Volumes/g0006/00scontig101200_wt_maker/zmakerresults02]

260$ tail supercont10r12_0{1..7}_wt_-fasta.gff3
==> supercont10r12_01_wt_-fasta.gff3 <==
Supercontig_10.1 protein2genome:Proteins_wt protein_match 9766147
9766861 1081 - . ID=Supercontig_10.1:hit:143093:96_0;Name=NCU10029T0
Supercontig_10.1 protein2genome:Proteins_wt match_part 9766600 9766861
1081 - . ID=Supercontig_10.1:hsp:281558:96_0;Parent=Supercontig_10.1:hit:143093:96_0;Target=NCU10029T0
1 87;Gap=F1 M87
Supercontig_10.1 protein2genome:Proteins_wt match_part 9766147 9766493
1081 - . ID=Supercontig_10.1:hsp:281559:96_0;Parent=Supercontig_10.1:hit:143093:96_0;Target=NCU10029T0
88 203;Gap=M116 R1
Supercontig_10.1 protein2genome:Proteins_wt protein_match 9768324
9770867 4208 + . ID=Supercontig_10.1:hit:143094:96_0;Name=NCU10030T0
Supercontig_10.1 protein2genome:Proteins_wt match_part 9768324 9768629
4208 + . ID=Supercontig_10.1:hsp:281560:96_0;Parent=Supercontig_10.1:hit:143094:96_0;Target=NCU10030T0
1 102;Gap=M102
Supercontig_10.1 protein2genome:Proteins_wt match_part 9768708 9770867
4208 + . ID=Supercontig_10.1:hsp:281561:96_0;Parent=Supercontig_10.1:hit:143094:96_0;Target=NCU10030T0
103 822;Gap=M720
Supercontig_10.1 protein2genome:Proteins_wt protein_match 9771037
9772118 1679 - . ID=Supercontig_10.1:hit:143095:96_0;Name=NCU10031T0
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771878 9772118
1679 - . ID=Supercontig_10.1:hsp:281562:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
1 80;Gap=F1 M80
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771339 9771812
1679 - . ID=Supercontig_10.1:hsp:281563:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
81 238;Gap=F1 M158 R1
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771037 9771263
1679 - . ID=Supercontig_10.1:hsp:281564:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
239 314;Gap=M76 R1

==> supercont10r12_02_wt_-fasta.gff3 <==
Supercontig_10.2 protein2genome:Proteins_wt match_part 4451411 4452067
476 - . ID=Supercontig_10.2:hsp:151055:43_0;Parent=Supercontig_10.2:hit:80440:43_0;Target=NCU00710T0
86 303;Gap=M38 I1 M65 I1 M17 D3 M96
Supercontig_10.2 protein2genome:Proteins_wt protein_match 4458486
4465086 11230 + . ID=Supercontig_10.2:hit:80441:43_0;Name=NCU09492T0
Supercontig_10.2 protein2genome:Proteins_wt match_part 4458486 4463973
11230 + . ID=Supercontig_10.2:hsp:151056:43_0;Parent=Supercontig_10.2:hit:80441:43_0;Target=NCU09492T0
1 1829;Gap=M1829 F1
Supercontig_10.2 protein2genome:Proteins_wt match_part 4464029 4465086
11230 + . ID=Supercontig_10.2:hsp:151057:43_0;Parent=Supercontig_10.2:hit:80441:43_0;Target=NCU09492T0
1830 2182;Gap=R1 M353
Supercontig_10.2 protein2genome:Proteins_wt protein_match 4466318
4468436 3152 + . ID=Supercontig_10.2:hit:80442:43_0;Name=NCU09494T0
Supercontig_10.2 protein2genome:Proteins_wt match_part 4466318 4467118
3152 + . ID=Supercontig_10.2:hsp:151058:43_0;Parent=Supercontig_10.2:hit:80442:43_0;Target=NCU09494T0
1 267;Gap=M267
Supercontig_10.2 protein2genome:Proteins_wt match_part 4467400 4467446
3152 + . ID=Supercontig_10.2:hsp:151059:43_0;Parent=Supercontig_10.2:hit:80442:43_0;Target=NCU09494T0
268 282;Gap=M15 F2
Supercontig_10.2 protein2genome:Proteins_wt match_part 4467506 4468436
3152 + . ID=Supercontig_10.2:hsp:151060:43_0;Parent=Supercontig_10.2:hit:80442:43_0;Target=NCU09494T0
283 593;Gap=R2 M311
Supercontig_10.2 protein2genome:Proteins_wt protein_match 4469551
4470510 1677 + . ID=Supercontig_10.2:hit:80443:43_0;Name=NCU09495T0
Supercontig_10.2 protein2genome:Proteins_wt match_part 4469551 4470510
1677 + . ID=Supercontig_10.2:hsp:151061:43_0;Parent=Supercontig_10.2:hit:80443:43_0;Target=NCU09495T0
1 320;Gap=M320

==> supercont10r12_03_wt_-fasta.gff3 <==
Supercontig_10.3 protein2genome:Proteins_wt match_part 5266707 5268294
3293 + . ID=Supercontig_10.3:hsp:116972:51_0;Parent=Supercontig_10.3:hit:62346:51_0;Target=NCU08752T0
97 626;Gap=R2 M530
Supercontig_10.3 protein2genome:Proteins_wt protein_match 5268913
5269506 862 - . ID=Supercontig_10.3:hit:62347:51_0;Name=NCU11291T0
Supercontig_10.3 protein2genome:Proteins_wt match_part 5269151 5269506
862 - . ID=Supercontig_10.3:hsp:116973:51_0;Parent=Supercontig_10.3:hit:62347:51_0;Target=NCU11291T0
1 118;Gap=F2 M118
Supercontig_10.3 protein2genome:Proteins_wt match_part 5268913 5269084
862 - . ID=Supercontig_10.3:hsp:116974:51_0;Parent=Supercontig_10.3:hit:62347:51_0;Target=NCU11291T0
119 176;Gap=M58 R2
Supercontig_10.3 protein2genome:Proteins_wt protein_match 5270069
5270577 732 - . ID=Supercontig_10.3:hit:62348:51_0;Name=NCU11292T0
Supercontig_10.3 protein2genome:Proteins_wt match_part 5270560 5270577
732 - . ID=Supercontig_10.3:hsp:116975:51_0;Parent=Supercontig_10.3:hit:62348:51_0;Target=NCU11292T0
1 6;Gap=M6
Supercontig_10.3 protein2genome:Proteins_wt match_part 5270069 5270488
732 - . ID=Supercontig_10.3:hsp:116976:51_0;Parent=Supercontig_10.3:hit:62348:51_0;Target=NCU11292T0
7 146;Gap=M140
Supercontig_10.3 protein2genome:Proteins_wt protein_match 5272817
5273172 438 + . ID=Supercontig_10.3:hit:62349:51_0;Name=NCU11876T0
Supercontig_10.3 protein2genome:Proteins_wt match_part 5272817 5272984
438 + . ID=Supercontig_10.3:hsp:116977:51_0;Parent=Supercontig_10.3:hit:62349:51_0;Target=NCU11876T0
1 56;Gap=M56
Supercontig_10.3 protein2genome:Proteins_wt match_part 5273077 5273172
438 + . ID=Supercontig_10.3:hsp:116978:51_0;Parent=Supercontig_10.3:hit:62349:51_0;Target=NCU11876T0
57 88;Gap=M32

==> supercont10r12_04_wt_-fasta.gff3 <==
Supercontig_10.4 protein2genome:Proteins_wt match_part 5942518 5942543
2702 + . ID=Supercontig_10.4:hsp:203849:59_0;Parent=Supercontig_10.4:hit:107509:59_0;Target=NCU10039T0
332 339;Gap=M8 F2
Supercontig_10.4 protein2genome:Proteins_wt match_part 5942596 5942684
2702 + . ID=Supercontig_10.4:hsp:203850:59_0;Parent=Supercontig_10.4:hit:107509:59_0;Target=NCU10039T0
340 369;Gap=R2 M30 F1
Supercontig_10.4 protein2genome:Proteins_wt match_part 5942750 5943246
2702 + . ID=Supercontig_10.4:hsp:203851:59_0;Parent=Supercontig_10.4:hit:107509:59_0;Target=NCU10039T0
370 535;Gap=R1 M166
Supercontig_10.4 protein2genome:Proteins_wt protein_match 5943769
5945137 2250 + . ID=Supercontig_10.4:hit:107510:59_0;Name=NCU10038T0
Supercontig_10.4 protein2genome:Proteins_wt match_part 5943769 5944059
2250 + . ID=Supercontig_10.4:hsp:203852:59_0;Parent=Supercontig_10.4:hit:107510:59_0;Target=NCU10038T0
1 97;Gap=M97
Supercontig_10.4 protein2genome:Proteins_wt match_part 5944121 5945137
2250 + . ID=Supercontig_10.4:hsp:203853:59_0;Parent=Supercontig_10.4:hit:107510:59_0;Target=NCU10038T0
98 436;Gap=M339
Supercontig_10.4 protein2genome:Proteins_wt protein_match 5946299
5947546 2220 + . ID=Supercontig_10.4:hit:107511:59_0;Name=NCU11793T0
Supercontig_10.4 protein2genome:Proteins_wt match_part 5946299 5947546
2220 + . ID=Supercontig_10.4:hsp:203854:59_0;Parent=Supercontig_10.4:hit:107511:59_0;Target=NCU11793T0
1 416;Gap=M416
Supercontig_10.4 protein2genome:Proteins_wt protein_match 5949691
5950845 2077 + . ID=Supercontig_10.4:hit:107512:59_0;Name=NCU10037T0
Supercontig_10.4 protein2genome:Proteins_wt match_part 5949691 5950845
2077 + . ID=Supercontig_10.4:hsp:203855:59_0;Parent=Supercontig_10.4:hit:107512:59_0;Target=NCU10037T0
1 385;Gap=M385

==> supercont10r12_05_wt_-fasta.gff3 <==
Supercontig_10.5 protein2genome:Proteins_wt protein_match 6428534
6429259 691 + . ID=Supercontig_10.5:hit:171447:63_0;Name=NCU07145T0
Supercontig_10.5 protein2genome:Proteins_wt match_part 6428534 6428619
691 + . ID=Supercontig_10.5:hsp:339992:63_0;Parent=Supercontig_10.5:hit:171447:63_0;Target=NCU07145T0
6 33;Gap=M28 F2
Supercontig_10.5 protein2genome:Proteins_wt match_part 6428775 6428949
691 + . ID=Supercontig_10.5:hsp:339993:63_0;Parent=Supercontig_10.5:hit:171447:63_0;Target=NCU07145T0
34 92;Gap=R2 M59
Supercontig_10.5 protein2genome:Proteins_wt match_part 6429134 6429259
691 + . ID=Supercontig_10.5:hsp:339994:63_0;Parent=Supercontig_10.5:hit:171447:63_0;Target=NCU07145T0
93 134;Gap=M42
Supercontig_10.5 protein2genome:Proteins_wt protein_match 6431525
6433447 3303 - . ID=Supercontig_10.5:hit:171448:63_0;Name=NCU07144T0
Supercontig_10.5 protein2genome:Proteins_wt match_part 6431525 6433447
3303 - . ID=Supercontig_10.5:hsp:339995:63_0;Parent=Supercontig_10.5:hit:171448:63_0;Target=NCU07144T0
1 641;Gap=M641
Supercontig_10.5 protein2genome:Proteins_wt protein_match 6435237
6435857 1125 + . ID=Supercontig_10.5:hit:171449:63_0;Name=NCU11673T0
Supercontig_10.5 protein2genome:Proteins_wt match_part 6435237 6435857
1125 + . ID=Supercontig_10.5:hsp:339996:63_0;Parent=Supercontig_10.5:hit:171449:63_0;Target=NCU11673T0
1 207;Gap=M207
Supercontig_10.5 protein2genome:Proteins_wt protein_match 6435237
6435659 312 + . ID=Supercontig_10.5:hit:171450:63_0;Name=NCU07151T0
Supercontig_10.5 protein2genome:Proteins_wt match_part 6435237 6435659
312 + . ID=Supercontig_10.5:hsp:339997:63_0;Parent=Supercontig_10.5:hit:171450:63_0;Target=NCU07151T0
1 138;Gap=M43 D1 M67 D2 M28

==> supercont10r12_06_wt_-fasta.gff3 <==
Supercontig_10.6 protein2genome:Proteins_wt protein_match 4156628
4157326 1265 + . ID=Supercontig_10.6:hit:42845:41_0;Name=NCU12156T0
Supercontig_10.6 protein2genome:Proteins_wt match_part 4156628 4157326
1265 + . ID=Supercontig_10.6:hsp:81887:41_0;Parent=Supercontig_10.6:hit:42845:41_0;Target=NCU12156T0
1 233;Gap=M233
Supercontig_10.6 protein2genome:Proteins_wt protein_match 4158775
4159359 1022 + . ID=Supercontig_10.6:hit:42846:41_0;Name=NCU04992T0
Supercontig_10.6 protein2genome:Proteins_wt match_part 4158775 4159359
1022 + . ID=Supercontig_10.6:hsp:81888:41_0;Parent=Supercontig_10.6:hit:42846:41_0;Target=NCU04992T0
1 195;Gap=M195
Supercontig_10.6 protein2genome:Proteins_wt protein_match 4159603
4162256 4195 - . ID=Supercontig_10.6:hit:42847:41_0;Name=NCU04991T0
Supercontig_10.6 protein2genome:Proteins_wt match_part 4162112 4162256
4195 - . ID=Supercontig_10.6:hsp:81889:41_0;Parent=Supercontig_10.6:hit:42847:41_0;Target=NCU04991T0
1 48;Gap=F1 M48
Supercontig_10.6 protein2genome:Proteins_wt match_part 4160234 4162040
4195 - . ID=Supercontig_10.6:hsp:81890:41_0;Parent=Supercontig_10.6:hit:42847:41_0;Target=NCU04991T0
49 650;Gap=F2 M602 R1
Supercontig_10.6 protein2genome:Proteins_wt match_part 4160090 4160175
4195 - . ID=Supercontig_10.6:hsp:81891:41_0;Parent=Supercontig_10.6:hit:42847:41_0;Target=NCU04991T0
651 679;Gap=F1 M29 R2
Supercontig_10.6 protein2genome:Proteins_wt match_part 4159743 4160017
4195 - . ID=Supercontig_10.6:hsp:81892:41_0;Parent=Supercontig_10.6:hit:42847:41_0;Target=NCU04991T0
680 771;Gap=M92 R1
Supercontig_10.6 protein2genome:Proteins_wt match_part 4159603 4159668
4195 - . ID=Supercontig_10.6:hsp:81893:41_0;Parent=Supercontig_10.6:hit:42847:41_0;Target=NCU04991T0
772 793;Gap=M22

==> supercont10r12_07_wt_-fasta.gff3 <==
Supercontig_10.7 protein2genome:Proteins_wt protein_match 4248554
4249708 1805 + . ID=Supercontig_10.7:hit:141771:41_0;Name=NCU09305T0
Supercontig_10.7 protein2genome:Proteins_wt match_part 4248554 4248857
1805 + . ID=Supercontig_10.7:hsp:265392:41_0;Parent=Supercontig_10.7:hit:141771:41_0;Target=NCU09305T0
1 101;Gap=M101 F1
Supercontig_10.7 protein2genome:Proteins_wt match_part 4248931 4249035
1805 + . ID=Supercontig_10.7:hsp:265393:41_0;Parent=Supercontig_10.7:hit:141771:41_0;Target=NCU09305T0
102 136;Gap=R1 M35 F1
Supercontig_10.7 protein2genome:Proteins_wt match_part 4249089 4249708
1805 + . ID=Supercontig_10.7:hsp:265394:41_0;Parent=Supercontig_10.7:hit:141771:41_0;Target=NCU09305T0
137 343;Gap=R1 M207
Supercontig_10.7 protein2genome:Proteins_wt protein_match 4250748
4252647 3282 + . ID=Supercontig_10.7:hit:141772:41_0;Name=NCU11424T0
Supercontig_10.7 protein2genome:Proteins_wt match_part 4250748 4250888
3282 + . ID=Supercontig_10.7:hsp:265395:41_0;Parent=Supercontig_10.7:hit:141772:41_0;Target=NCU11424T0
1 47;Gap=M47
Supercontig_10.7 protein2genome:Proteins_wt match_part 4250950 4252647
3282 + . ID=Supercontig_10.7:hsp:265396:41_0;Parent=Supercontig_10.7:hit:141772:41_0;Target=NCU11424T0
48 613;Gap=M566
Supercontig_10.7 protein2genome:Proteins_wt protein_match 4253179
4254192 1607 + . ID=Supercontig_10.7:hit:141773:41_0;Name=NCU09306T0
Supercontig_10.7 protein2genome:Proteins_wt match_part 4253179 4253875
1607 + . ID=Supercontig_10.7:hsp:265397:41_0;Parent=Supercontig_10.7:hit:141773:41_0;Target=NCU09306T0
1 232;Gap=M232 F1
Supercontig_10.7 protein2genome:Proteins_wt match_part 4253978 4254192
1607 + . ID=Supercontig_10.7:hsp:265398:41_0;Parent=Supercontig_10.7:hit:141773:41_0;Target=NCU09306T0
233 304;Gap=R1 M72

[10:20:50][raramayo][/Volumes/g0006/00scontig101200_wt_maker/zmakerresults02]

261$ tail -1 supercont10r12_01_wt_-fasta.gff3
Supercontig_10.1 protein2genome:Proteins_wt match_part 9771037 9771263
1679 - . ID=Supercontig_10.1:hsp:281564:96_0;Parent=Supercontig_10.1:hit:143095:96_0;Target=NCU10031T0
239 314;Gap=M76 R1

[10:21:07][raramayo][/Volumes/g0006/00scontig101200_wt_maker/zmakerresults02]

262$ tail -1 supercont10r12_0{1..7}_wt_-fasta.gff3
tail: option used in invalid context -- 1

This is not what I expected

Thanks