Re: Simple Shell Programming
- From: "sudip05@xxxxxxxxxxxx" <zixenus@xxxxxxxxx>
- Date: 12 Apr 2007 00:18:31 -0700
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}')"
.
- References:
- Simple Shell Programming
- From: Guenther Sohler
- Simple Shell Programming
- Prev by Date: Re: Simple Shell Programming
- Next by Date: How to measure context switch time
- Previous by thread: Re: Simple Shell Programming
- Next by thread: Re: Simple Shell Programming
- Index(es):