So, I have text file with a a bunch of numbers, one number per line to be specific, so I do:- cat filename.txt|sort -n|head -1 to get the top number and I can do
cat filename.txt|sort -n|head -1