help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait until the file is done


From: MN
Subject: Re: wait until the file is done
Date: Mon, 2 Nov 2020 12:37:23 +0100

Thank you ever so much!
It works really well!

> That would need {...} around the echo and return. Pehaps better would be [
> -s "$1" ] || { echo "No file found/File not found"; return 1; }
> -s : checks for file existing and containing something
> { ...; ...; } semicolons are needed inside curly braces
> For even more verbosity try a line like
> echo -n "$size " or printf "%d " "$size" just before the oldsize=$size line
> (note the space inside the quotes).
> 
> 
> -- 
> Chris Elvidge
> England



reply via email to

[Prev in Thread] Current Thread [Next in Thread]