I would like to print highest 5% values in column two, which i am able to do it in excel, but i would like to print the top 5% values to a new file. i have searched for similar questions but i could find suggestion to print only top 5 values. appreciate your time and help. thank you kpfile.txtX1 h382 15325,3385 15446,4386 16501,5446 16480460 16467,7534 16437,2762 16433,7779 16400,6783 16398828 16376,4918 16319,4x2 H   52214 3966,3352291 3993,453165 3500,5753684 3071,6754902 2169,8354921 1968,955457 1943,9855458 903,53955459 609,99355460 621,41455461 553,23655470 535,00555472 298,25155473 298,25155474 298,25155475 302,3455559 371,4755614 466,16555679 406,35255735 426,36X3 H 191773 178,645191775 183,613191780 193,663191820 202,933191838 188,988191845 175,414191867 167,791191880 166,49191883 170,456191895 165,781191900 154,362191902 177,768191914 175,431191916 168,532191918 163,291191919 170,911expected output (top 5%)386 16501,5446 16480
Print top 5% values in a file
sed;awk;grep