I apologize but I searched and could not find an existing question/answer that solved this.
Simply put, I just need to take a list of numbers in a file and grab the largest number.I would typically use bash but i have a Python requirement.
I know how to open a file for reading and output the contents of the file but I can't get it to process the for loop output. Thank you in advance.
Here's the bash equivalent of what i need to do in python:
chrisk@kihei:~$ cat foo
214101721792
214101675361
214101684152
214101743134
214101718688
214101731297
214101715541
214101743273
214101722035
214101703116
214101696928
214101687776
chrisk@kihei:~$ sort foo | tail -1
214101743273
chrisk@kihei:~$