hi,
How do i create a tar file of a directory excluding the links in that particular directory and its sub-directories.
The below command doesnt work for me.
tar -cvf abc.tar /dir1 --exclude"^l"
hi,
How do i create a tar file of a directory excluding the links in that particular directory and its sub-directories.
The below command doesnt work for me.
tar -cvf abc.tar /dir1 --exclude"^l"
I assume you mean symlinks?
I'd use "find" with -type.
If you many ANY link, you are going to need to construct a list (not hard with ls -li sorted by inum) and then remove the dupes.