Timeline for How to randomly sample a subset of a file
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 5, 2016 at 21:27 | comment | added | G-Man Says 'Reinstate Monica' | This will output one line from the file. (I guess your idea is to execute the above commands in a loop?) If the file has more than 32767 lines, then these commands will choose only from the first 32767 lines. Aside from possible inefficiency, I don’t see any big problem with this answer if the file has fewer than 32767 lines. | |
| Nov 18, 2014 at 20:00 | comment | added | offby1 | This fails badly if the file has fewer than 32767 lines. | |
| Jan 11, 2014 at 9:51 | history | edited | user55518 | CC BY-SA 3.0 |
added 9 characters in body
|
| Jan 10, 2014 at 0:23 | history | edited | user55518 | CC BY-SA 3.0 |
added 23 characters in body
|
| Jan 9, 2014 at 16:49 | history | answered | user55518 | CC BY-SA 3.0 |