alex wallis wrote:
ls -l apps/lang/* | awk '{print $5}' | sort -n | tail -1
It generates the number at the end, and it sounds like the result is
something else.
>
I put in the above command as you suggested, and the output i got was none.
Literally just the word none.
Seems like the ls output is different from expected for some reason. If
you type something like this:
ls -l apps/lang/s*
what is the output of that? It should create a list like this:
-rw-r--r-- 1 Name None 3127 Feb 24 10:14 apps/lang/slovenscina.lng
-rw-r--r-- 1 Name None 9349 Feb 24 10:14 apps/lang/svenska.lng
but in your case, there seem to be an extra space column before the
size. Maybe your user name ("Name" in the above) contains a space? Don't
know if that's possible though... If it is, this should work as expected:
ls -ln apps/lang/* | awk '{print $5}' | sort -n | tail -1
Magnus