how to get the size of a file in a shell variable
how to get the size of a file in shell?
"ls -ls 1.JPG" gives
"104 -rw-r--r-- 1 casa casa 99341 2006-10-18 10:41 1.JPG"
but how to get the first part, 104, in a shell variable? I would to compare with a numerical value.
Is there any other solution?
|