So I'm trying to rar a file after post processing but it seems to not be able to rar the filename because of spaces,
I've tried some different things and tried encapsulating the var in '' and "
ex: rar -m0 a $1.rar $1/
Basically trying to run this command and then if possible move the file to a desired local location,
Any help would be appreciated.
Trying to rar file but encountering issues
Re: Trying to rar file but encountering issues
Code: Select all
cd "$1"; rar a "$3.rar" * -m0 && mv -fv "$3.rar" "/dest/in/ation"
Last edited by sweetie on August 22nd, 2010, 9:27 am, edited 1 time in total.
Re: Trying to rar file but encountering issues
Thanks that did the trick!