Skip to content

Instantly share code, notes, and snippets.

Created November 11, 2014 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2a7beb4871b25ae8f8b3 to your computer and use it in GitHub Desktop.
Save anonymous/2a7beb4871b25ae8f8b3 to your computer and use it in GitHub Desktop.
Weird data. Try: sort -t , -k 1n < weird.csv | less. Line 7 will be misplaced. But it works when you do: cut -d , -f 1-3 < weird.csv | sort -t , -k 1n | less
1 69 66 3
6 71 55 16
185 86 59 27
146 67 55 12
162 83 62 21
149 79 60 19
60 84 62 22
56 82 59 23
16 81 59 22
646 92 51 41
168 83 55 28
581 92 56 36
4 78 57 21
108 76 57 19
288 87 0 87
284 75 55 20
5 83 59 24
13 90 59 31
105 78 58 20
14 94 58 36
27 90 57 33
813 93 54 39
170 80 52 28
168 79 54 25
107 83 54 29
68 85 64 21
23 82 56 26
310 82 58 24
24 80 60 20
313 79 57 22
26 84 60 24
113 82 58 24
5 73 58 15
29 85 61 24
51 94 56 38
45 79 59 20
103 79 53 26
44 86 56 30
45 78 59 19
17 77 57 20
1 79 60 19
183 81 58 23
316 83 0 83
43 88 60 28
44 87 62 25
62 103 45 58
14 74 56 18
396 77 59 18
96 80 56 24
255 79 62 17
11 82 66 16
180 85 61 24
2 78 58 20
5 78 62 16
42 87 61 26
60 81 57 24
37 77 49 28
2 77 65 12
152 83 54 29
48 79 58 21
98 85 45 40
125 81 60 21
1 69 55 14
1 63 58 5
1 69 59 10
69 78 54 24
20 90 66 24
13 74 59 15
30 80 59 21
73 86 58 28
119 76 59 17
53 79 58 21
195 100 53 47
147 83 54 29
31 79 59 20
31 77 57 20
116 83 64 19
105 117 64 53
25 81 59 22
44 80 58 22
178 84 56 28
14 79 48 31
123 76 60 16
64 82 60 22
184 105 59 46
51 85 59 26
61 85 56 29
294 79 55 24
1 73 67 6
151 89 59 30
98 76 54 22
6 78 61 17
74 82 60 22
12 78 58 20
56 78 57 21
102 80 52 28
2 76 64 12
41 82 58 24
58 83 59 24
385 90 0 90
144 77 60 17
416 126 47 79
850 114 54 60
463 85 60 25
122 81 49 32
161 117 55 62
96 84 55 29
230 120 59 61
2 68 61 7
98 86 61 25
251 94 63 31
3 87 56 31
36 87 57 30
5 78 52 26
10 79 53 26
17 81 58 23
68 79 56 23
23 87 55 32
98 88 56 32
141 89 59 30
15 84 53 31
1 67 62 5
6 75 60 15
1 67 62 5
3 66 49 17
71 85 55 30
2 71 59 12
205 78 55 23
1 64 56 8
51 99 46 53
11 79 61 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment