Mauriat Miranda     mjmwired

Archive dotfiles and dotdirectories only

Sometimes I would find the need to archive just .files and .directories (e.g. .mozilla, .gnome). Unfortunately I would always manually do it.

Quick tip:

# ls -A | egrep '^\.' | tar -cvf filename.tar -T -

(Thanks to LQ)

Posted in: Miscellaneous, Tips,