Quote:
Originally Posted by trickydba
I get this error:
Code:
./compressfolderfinal: line 13: syntax error near unexpected token `)'
|
which is still the same error as a few posts earlier?
i don't know, it works on my shell.
in a case like that you have to dissect the script. the '|' are the glue, carefully detach each section starting from the right until you don't get the error anymore.
additionally you'll probably have to remove the enclosing bytes=$()
and i recommend "quoting $variables" like your life depends on it.