sampling lines in a file