Booom...........

LabNotes and Random Thoughts...............

Thursday, August 27, 2015

sampling some data using cmdline python

randomly picking some 300 keeg values from a file using command line python

python -c "import random; print [i.strip() for i in random.sample(open('keeg_ids', 'r').readlines(), 300)] "

No comments: