Re: Simple Shell Programming



On Apr 12, 11:13 am, Guenther Sohler <guenther.soh...@xxxxxxxxx>
wrote:
How can I get the size of a specified file into a variable ?

Is there an easy way to calculate with numbers in the shell ?

size="$(ls -la "$file" | awk '{print $5}')"

.