Hi there!
I've spent about an hour looking for an answer to this question and was surprised not find a clear answer. At times the initial poster wasn't clear in what he wanted, so I'll try to be very clear.
I have made several backups of my home directory on a hard disk and now realize that the backups have copied all hidden directories and files. I would now like to delete hidden directories and files in these backups in order to free up some space on my hard disk.
In other words, the backup of my home directory may contain something like the following:
Code:
. .emacs .gnome2_private .mozilla .pulse-cookie .TrueCrypt-lock-user
.. .emacs-bkp .gstreamer-0.10 .mozilla-thunderbird .purple .update-notifier
.adobe .emacs.d .gtk-bookmarks .mplayer .qt .ure
.android .epiphany .gvfs Music .recently-used Videos
.AtelierB es .hplip .mysql_history .recently-used.xbel .viminfo
Azureus Downloads .esd_auth hs_err_pid24894.log .nano_history .recently-used.xbel.EQGT6V .vnc
.bash_history .evolution hts-cache .nautilus .sbclrc .vpinstall.properties
.bash_logout .festival_history hts-log.txt .nbi .SciTEUser.properties .vplls
.bashrc .filezilla .ICEauthority .netbeans .scripts .vpsuite_installation.xml
.bashrc.bkp .fontconfig .icedteaplugin .netbeans-registration .Skype .wicd
bin FrostWire .icons .netx .slime .winefish
I want to delete everything EXCEPT the following folders/files: Asureuz\ Downloads, bin, es, Frostwire, hs_err_pid24894.log, hts-cache, hts-log.txt, Music, Videos
What is the simplest and safest way to do this, preferably a command I can run from the terminal?
Thanks in advance.
RM