find largest number in file?
I need to filter output of rar archive listing, to find the largest file in it.
whats the simplest way to do it? thanks. |
Try the following:
Code:
du -a ./*.rar | sort -n -r | head -n 1 |
Did the above help or were you looking for the largest file inside the archive?
|
no, I was looking for largest file inside archive., filtering the output of: rar l archive.rar
|
So maybe you can show us where you are stuck? Which rar command are you currently using to examine the archive?
|
rar l archive.rar
hmm, it seems that combining it in Code:
rar l archive.rar | sort -n -r | head -n 1 |
All times are GMT -5. The time now is 04:36 PM. |