On Mon, Jan 4, 2010 at 11:35 PM, Balachandar <[email protected]> wrote: > I want to get the size of a file in a variable.I want to do arithmetic > operations on that variable.I used du command.But it's output is like this > "100 1.txt". > i dont want any trailing attachments.I only want the file size.Any help ??
man stat
Eg.
$ stat -c %s /bin/bash
797784
- Raja
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
