I have a small question regarding for loops in linux bash scripts.
I have a folder that contains 10000 files. I wrote for loop to list 100 files from the 10000.
For a in ~/Desktop/folder/*.txt
Do
Echo $a
Done
However, I need to list the biggest 100 files in the folder and not the first 100 files depending on alphabet.