I have a file which contains several numbers, as follows.21 12 33 35 21 12 33 44 52 63 14 12 23 34 11 12 13 53 1 12 43 33 44How can I find the maximum of these values, which is 63? I wanted to use stats but it seems this command does not exist on my machine and I don't want to install it. How can I approach using perl?
Finding the maximum of the values in a file
text processing;perl
Using List::Util (part of the standard library since 5.8, otherwise available on CPAN):perl -MList::Util=max -lane 'print max(@F)'