Hi,
I am using GNU bash ,version 4.2.8(1) - release (i686-pc-linux-gnu) ubuntu 11.04
I am trying to create a tar file for a directory.
suppose the name of the directory is fruits..
mytar.sh
#!/bin/sh
case $0 in
*listtar) TARGS="-tvf $1" ;;
*maketar) TARGS="-cvf $1.tar $1" ;;
esac
tar $TARGS
after this created two links
$ ln -s mytar.sh listtar
$ ln -s mytar.sh maketar
now when i am doing :
$ ./maketar fruits
I am getting this error.
./mytar.sh : 4 : Syntax error : Unterminated quoted string....