I want to gunzip a filename, stored in $2, to a specified directory, stored in $3. For example,
if [ -f $2 ]; then
gunzip $2
here I want to remove .gz from $2
mv $2 $3
fi
so from the terminal command line when running a script I type:
-z anotherdirectory/test.txt user/harry
because the error says mv: cannot stat ‘backup/test.txt.gz’: No such file or directory.
Thank you everyone!!