hey folks - I'm new to Linux and LinuxQuestions.org - nice to meet you all - and here is my first question
How can I grab the size of a file and commit it to a variable?
I know how to use "stat /file -c %s" to print the file size to the screen and I know how to init a variable "variableName=value" but I can't seem to figure out how put the file size int a variable as an integer.
FYI: I am using this to create an automated backup script that backs up files based on file size. I need to be able to run an if/then statement based on a file size comparison.
Thanks in advance,