1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Merge branch 'master' into pr

This commit is contained in:
Sylvestre Ledru 2021-04-09 22:02:25 +02:00 committed by GitHub
commit 844e318a67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
235 changed files with 12115 additions and 4330 deletions

1
tests/fixtures/cksum/chars.txt vendored Normal file
View file

@ -0,0 +1 @@
123456789:;<=>?@

View file

@ -0,0 +1 @@
\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\042\043\044\045\046\047\050\051\052\053\054\055\056\057\060\061\062\063\064\065\066\067\070\071\072\073\074\075\076\077\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377\400\401\402\403\404\405\406\407\410\411\412\413\414\415\416\417\420\421\422\423\424\425\426\427\430\431\432\433\434\435\436\437\440\441\442\443\444\445\446\447\450\451\452\453\454\455\456\457\460\461\462\463\464\465\466\467\470\471\472\473\474\475\476\477\500\501\502\503\504\505\506\507\510\511\512\513\514\515\516\517\520\521\522\523\524\525\526\527\530\531\532\533\534\535\536\537\540\541\542\543\544\545\546\547\550\551\552\553\554\555\556\557\560\561\562\563\564\565\566\567\570\571\572\573\574\575\576\577\600\601\602\603\604\605\606\607\610\611\612\613\614\615\616\617\620\621\622\623\624\625\626\627\630\631\632\633\634\635\636\637\640\641\642\643\644\645\646\647\650\651\652\653\654\655\656\657\660\661\662\663\664\665\666\667\670\671\672\673\674\675\676\677\700\701\702\703\704\705\706\707\710\711\712\713\714\715\716\717\720\721\722\723\724\725\726\727\730\731\732\733\734\735\736\737\740\741\742\743\744\745\746\747\750\751\752\753\754\755\756\757\760\761\762\763\764\765\766\767\770\771\772\773\774\775\776\777\1000\1001

0
tests/fixtures/du/empty.txt vendored Normal file
View file

View file

@ -0,0 +1 @@
test1 test2 test3 test4 test5 test6

11
tests/fixtures/fold/tab_stops.input vendored Normal file
View file

@ -0,0 +1,11 @@
1
12
123
1234
12345
123456
1234567
12345678
123456781
12345678 2
12345678 2 4

View file

@ -0,0 +1,13 @@
1
12
123
1234
12345
123456
1234567
12345678
123456781
12345678
2
12345678
2 4

View file

@ -0,0 +1,18 @@
1
12
123
1234
12345
123456
1234567
12345678
12345678
1
12345678
2
12345678
2
4

View file

@ -0,0 +1,24 @@
Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
Nunc interdum suscipit sem vel ornare.
Proin euismod,
justo sed mollis dictum,
eros urna ultricies augue,
eu pharetra mi ex id ante.
Duis convallis porttitor aliquam.
Nunc vitae tincidunt ex.
Suspendisse iaculis ligula ac diam consectetur lacinia.
Donec vel velit dui.
Etiam fringilla,
dolor quis tempor vehicula,
lacus turpis bibendum velit,
et pellentesque elit odio a magna.
Cras vulputate tortor non libero vehicula euismod.
Aliquam tincidunt nisl eget enim cursus,
viverra sagittis magna commodo.
Cras rhoncus egestas leo nec blandit.
Suspendisse potenti.
Etiam ullamcorper leo vel lacus vestibulum,
cursus semper eros efficitur.
In hac habitasse platea dictumst.
Phasellus scelerisque vehicula f

100
tests/fixtures/head/sequence vendored Normal file
View file

@ -0,0 +1,100 @@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

90
tests/fixtures/head/sequence.expected vendored Normal file
View file

@ -0,0 +1,90 @@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

10
tests/fixtures/shuf/file_input.txt vendored Normal file
View file

@ -0,0 +1,10 @@
11
12
13
14
15
16
17
18
19
20

View file

@ -0,0 +1,12 @@
10E
1000EDKLD
10000K78
+100000
100E6
50e10

View file

@ -0,0 +1,12 @@
10000K78
10E
1000EDKLD
100E6
50e10
+100000

View file

@ -0,0 +1,12 @@
+100000
10E
50e10
100E6
1000EDKLD
10000K78

View file

@ -0,0 +1,12 @@
10000K78
10E
1000EDKLD
100E6
50e10
+100000

View file

@ -0,0 +1,37 @@
.2T
2G
100M
7800900K
51887300-
1890777
56908-90078
6780.0009866
6780.000986
789----009999 90-0 90-0
1
0001
apr
MAY
JUNNNN
JAN
AUG
APR
0000000
00
-1.4

View file

@ -0,0 +1,37 @@
JAN
0000000
00
0001
1
-1.4
JUNNNN
AUG
apr
APR
MAY
1890777
56908-90078
51887300-
6780.0009866
789----009999 90-0 90-0
6780.000986
100M
7800900K
2G
.2T

View file

@ -0,0 +1,37 @@
-1.4
JAN
0000000
00
JUNNNN
AUG
apr
APR
MAY
0001
1
789----009999 90-0 90-0
6780.000986
6780.0009866
56908-90078
1890777
51887300-
7800900K
100M
2G
.2T

View file

@ -0,0 +1,37 @@
JAN
0000000
00
0001
1
-1.4
JUNNNN
AUG
apr
APR
MAY
1890777
56908-90078
51887300-
6780.0009866
789----009999 90-0 90-0
6780.000986
100M
7800900K
2G
.2T

View file

@ -0,0 +1,13 @@
-1.4
JAN
0001
789----009999 90-0 90-0
6780.000986
6780.0009866
56908-90078
1890777
51887300-
7800900K
100M
2G
.2T

View file

@ -0,0 +1,37 @@
JAN
0000000
00
0001
1
-1.4
JUNNNN
AUG
apr
APR
MAY
1890777
56908-90078
51887300-
6780.0009866
789----009999 90-0 90-0
6780.000986
100M
7800900K
2G
.2T

View file

@ -0,0 +1,37 @@
-1.4
00
0000000
APR
AUG
JAN
JUNNNN
MAY
apr
0001
1
789----009999 90-0 90-0
6780.000986
6780.0009866
56908-90078
1890777
51887300-
7800900K
100M
2G
.2T

View file

@ -0,0 +1,46 @@
JAN
0000000
00
0001
1
-1.4
JUNNNN
AUG
apr
APR
MAY
1890777
56908-90078
51887300-
6780.0009866
789----009999 90-0 90-0
6780.000986
1M
10M
100M
1000M
10000M
7800900K
780090K
78009K
7800K
780K
2G
.2T

View file

@ -0,0 +1,30 @@
-2028789030
-896689
-8.90880
-1
-.05
000
CARAvan
00000001
1
1.040000000
1.444
1.58590
8.013
45
46.89
4567.
37800
576,446.88800000
576,446.890
4798908.340000000000
4798908.45
4798908.8909800

View file

@ -0,0 +1,30 @@
576,446.890
576,446.88800000
4567.
45
46.89
-1
1
00000001
4798908.340000000000
4798908.45
4798908.8909800
37800
-2028789030
-896689
CARAvan
-8.90880
-.05
1.444
1.58590
1.040000000
8.013
000

View file

@ -0,0 +1,30 @@
4798908.8909800
4798908.45
4798908.340000000000
576,446.890
576,446.88800000
37800
4567.
46.89
45
8.013
1.58590
1.444
1.040000000
1
00000001
CARAvan
000
-.05
-1
-8.90880
-896689
-2028789030

View file

@ -0,0 +1,30 @@
4798908.8909800
4798908.45
4798908.340000000000
576,446.890
576,446.88800000
37800
4567.
46.89
45
8.013
1.58590
1.444
1.040000000
1
00000001
CARAvan
000
-.05
-1
-8.90880
-896689
-2028789030

View file

@ -0,0 +1,30 @@
576,446.890
576,446.88800000
4567.
45
46.89
-1
1
00000001
4798908.340000000000
4798908.45
4798908.8909800
37800
-2028789030
-896689
CARAvan
-8.90880
-.05
1.444
1.58590
1.040000000
8.013
000

View file

@ -0,0 +1,30 @@
-2028789030
-896689
-8.90880
-1
-.05
CARAvan
000
1
00000001
1.040000000
1.444
1.58590
8.013
45
46.89
4567.
37800
576,446.88800000
576,446.890
4798908.340000000000
4798908.45
4798908.8909800

View file

@ -0,0 +1,30 @@
576,446.890
576,446.88800000
4567.
45
46.89
-1
1
00000001
4798908.340000000000
4798908.45
4798908.8909800
37800
-2028789030
-896689
CARAvan
-8.90880
-.05
1.444
1.58590
1.040000000
8.013
000

View file

@ -0,0 +1,20 @@
-2028789030
-896689
-8.90880
-1
-.05
1
1.040000000
1.444
1.58590
8.013
45
46.89
4567.
37800
576,446.88800000
576,446.890
4798908.340000000000
4798908.45
4798908.8909800

View file

@ -0,0 +1,30 @@
576,446.890
576,446.88800000
4567.
45
46.89
-1
1
00000001
4798908.340000000000
4798908.45
4798908.8909800
37800
-2028789030
-896689
CARAvan
-8.90880
-.05
1.444
1.58590
1.040000000
8.013
000

View file

@ -0,0 +1,20 @@
4798908.8909800
4798908.45
4798908.340000000000
576,446.890
576,446.88800000
37800
4567.
46.89
45
8.013
1.58590
1.444
1.040000000
1
-.05
-1
-8.90880
-896689
-2028789030

View file

@ -0,0 +1,30 @@
576,446.890
576,446.88800000
4567.
45
46.89
-1
1
00000001
4798908.340000000000
4798908.45
4798908.8909800
37800
-2028789030
-896689
CARAvan
-8.90880
-.05
1.444
1.58590
1.040000000
8.013
000

View file

@ -0,0 +1,20 @@
4798908.8909800
4798908.45
4798908.340000000000
576,446.890
576,446.88800000
37800
4567.
46.89
45
8.013
1.58590
1.444
1.040000000
1
-.05
-1
-8.90880
-896689
-2028789030

View file

@ -0,0 +1,30 @@
576,446.890
576,446.88800000
4567.
45
46.89
-1
1
00000001
4798908.340000000000
4798908.45
4798908.8909800
37800
-2028789030
-896689
CARAvan
-8.90880
-.05
1.444
1.58590
1.040000000
8.013
000

View file

@ -0,0 +1,6 @@
JAN
apr
MAY
JUNNNN
AUG

37
tests/fixtures/sort/months-dedup.txt vendored Normal file
View file

@ -0,0 +1,37 @@
JAN
0000000
00
0001
1
-1.4
JUNNNN
AUG
apr
APR
MAY
1890777
56908-90078
51887300-
6780.0009866
789----009999 90-0 90-0
6780.000986
100M
7800900K
2G
.2T

View file

@ -0,0 +1,23 @@
-8.90880
-.05
Karma
1
1.0/0.0
1.040000000
1.2
1.444
1.58590

View file

@ -0,0 +1,23 @@
Karma
1.0/0.0
-8.90880
-.05
1.040000000
1.444
1.58590
1
1.2

Binary file not shown.

BIN
tests/fixtures/sort/zero-terminated.txt vendored Normal file

Binary file not shown.

View file

@ -0,0 +1,26 @@
aaaaa
bbbbb ⅱ
bbbbb ⅱ
ccccc ⅲ
ccccc ⅲ
ccccc ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
eeeee ⅲ
fffff ⅲ
fffff ⅲ
ggggg ⅲ
ggggg ⅲ
ggggg ⅲ
GGGGG ⅲ
GGGGG ⅲ

27
tests/fixtures/uniq/group-both.expected vendored Normal file
View file

@ -0,0 +1,27 @@
aaaaa
bbbbb ⅱ
bbbbb ⅱ
ccccc ⅲ
ccccc ⅲ
ccccc ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
eeeee ⅲ
fffff ⅲ
fffff ⅲ
ggggg ⅲ
ggggg ⅲ
ggggg ⅲ
GGGGG ⅲ
GGGGG ⅲ

View file

@ -0,0 +1,26 @@
aaaaa
bbbbb ⅱ
bbbbb ⅱ
ccccc ⅲ
ccccc ⅲ
ccccc ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
eeeee ⅲ
fffff ⅲ
fffff ⅲ
ggggg ⅲ
ggggg ⅲ
ggggg ⅲ
GGGGG ⅲ
GGGGG ⅲ

25
tests/fixtures/uniq/group.expected vendored Normal file
View file

@ -0,0 +1,25 @@
aaaaa
bbbbb ⅱ
bbbbb ⅱ
ccccc ⅲ
ccccc ⅲ
ccccc ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
ddddd ⅲ
eeeee ⅲ
fffff ⅲ
fffff ⅲ
ggggg ⅲ
ggggg ⅲ
ggggg ⅲ
GGGGG ⅲ
GGGGG ⅲ