S
Sergii
Guest
hello everybody
My intention is to sort all files residing inside the most of the top level folders except proc by "weight" but the code below does not work as expected
for dir in $(ls / | grep -v proc); do find $(`echo /"$dir"`) -type f -printf '%s %p\n'| sort -nr | head -10; done
Could you please look into this and advise
My intention is to sort all files residing inside the most of the top level folders except proc by "weight" but the code below does not work as expected
for dir in $(ls / | grep -v proc); do find $(`echo /"$dir"`) -type f -printf '%s %p\n'| sort -nr | head -10; done
Could you please look into this and advise