Denis Crowdy wrote:

I'm having a serious mental issue with trying to create a tar archive of
only my dot files (and dot directories).

Try something like:

cd /home/me
find . -type f -o -type d -a -name '.*' -print | \
  tar --create --file=fred.tar --files-from=-

Note that the order of -o (or) and -a (and) arguments
in the find command is significant -- put the -a
conditions last.

Cheers,
Glen

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to