Code: Select all
If [size of a-b-c = 0bytes]; then #where a-b-c is a filename
{do a multiple lines of nested code something}
else {dosomethingsimple}
fi
Code: Select all
If [size of a-b-c != 0bytes]; then
Code: Select all
If [-f a-b-c]; then
I can't seem to find any guide or examples online to follow without having to write a 'page' of code. I have looked at the bash guide for beginners and ash code sites but no joy.
Can anyone provide a pointer or code please, surely it's not that hard!
thanks
For those wondering what i'm up to at the moment. I'm well on the way to adding opensuse to our woof distro list. It's where I came from when I found and started with Puppy 2.12 and with opensuse having both i586 and x86_64 available, plus having a packagelist counting at well over 10,000 packages, it could just be an interesting addition. And no, mage2 is still on the boil, I'm just awaiting a couple of fixes upstream to occur, then it should be out.