touch "data" if [$ (stat -c% s "data") & lt; 1024]; Then "Encrypt file" file can not verify that the file size is less than 1MiB or not (of course, This will return the error: Whether the script variable is not included (automatically converted?) data is empty File.)
./ chk.sh: line 2: 1024: No such file or directory < / Pre>
For integer comparison & lt; Instead of you should use -lt
= and ! = string is used for comparison
& lt; and & gt; is used for redirection
No comments:
Post a Comment