Just a collection of some random cool stuff. PS. Almost 99% of the contents here are not mine and I don't take credit for them, I reference and copy part of the interesting sections.
From https://unix.stackexchange.com/questions/108581/how-to-randomly-sample-a-subset-of-a-file
perl -ne 'print if (rand() < .01)' huge_file.csv > sample.csv
Post a Comment
No comments:
Post a Comment