Range for filesize in ls -l
I am trying to display the files whos sizes are in a specific range. This script will take two arguments as the lower bound and upper bound of the file size, and prints out a list of filenames and their sizes. I tried this:
for i in {$0..$1} do set -- $(ls -l "$i") echo $i: $5 bytes done I'm pretty sure I'm implementing the range incorrectly, but I don't know how to make it work. Any suggestions? |
Quote:
|
bash shell
|
As this is an extension of your other question (which you have not marked as SOLVED), you should ask it there as people are already trying to help you.
|
All times are GMT -5. The time now is 06:30 PM. |