I'm looking for the TAR command that wil exclude directories.
I'm using this command to tar a file, but when i tar it, it wil take the whole pad within the rar. e.g. i want all files in the direcotry /home/user tarred to a tar file. but when i tar the file it will tar /home/user + files!
when i untar the tar file it will tar the content to /home/user/+files
my tar command
tar zcf archive.$day.tar.gz /var/log/compnaam/*.$day