Monday, December 16, 2013

Fwd: unix tips




Get some sampled data of a very big file

awk     'BEGIN { srand(systime()); } {if (rand() < 0.3) { print $0; } }'    data.csv


No comments:

Post a Comment