Zipping the contents
tar -cvzf Destination folder Source folder from where files need to copy
Extracting the contents
tar -xvzf Source folder to extract
Zip the contents excluding the folders
tar -cvzf Destination folder Source folder from where files need to copy
--exclude="contents" --exclude="tmp"
To delete all occurance of files start with some extension
Eg:
find . -name ".svn" -exec rm -rf {} \;