Maybe this is an easy question. But I can not exclude .*.*.swp file in the resulted tar.gz file. Could you please let me know how to do it correctly?
$ tar czvf ../trial/`basename $PWD`.tar.gz ../`basename $PWD`
--exclude={.*.*.swp}
tar: Removing leading `../' from member names
../current_diretory/
../current_diretory/.main.sh.swp
../current_diretory/main.sh
