On 26Mar2007 09:26, I wrote: | Your script is buggy (and needlessly complex). It can round the block | count down by one. Try this: | | blocos=$(ls -l "$1" | awk '{ print ($5+2047) / 2048 }') My script is buggy too. Make it say this: blocos=$(ls -l "$1" | awk '{ print int(($5+2047) / 2048) + 1 }') Sorry, -- Cameron Simpson <cs@xxxxxxxxxx> DoD#743