PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

How do I remove nonempty directories automatically


Your Ad Here

Your Ad Here

Hi. Back in my DR-DOS days, I had a utility called DELDIR available which could be used thus: DELDIR mydir After answering 'Y' to its query, it would proceeed to descend into that directory (as deeply as needed) and remove all files, then the directory itself. Surely Linux has something equivalent, I thought.

Well, no luck. The problem is I am collecting a bunch of directorires in ~-tmp of the form: "keyring-12346" where the digits 1-6 seem to be random alphanumerics.

I want get rid of all these from my .bashlogout file when I log out.

So far this does not work, hints or outright "do it thus" appreciated.

* here's the function I'm working on*cleantmp() { cd ~ * do I need a semi-colon here ? * DIRS=`ls tmp` for D in $DIRS cd $D * what about all these? * rm -f * cd .. rmdir $D ; }

I don't know the right syntax and the man page just says for NAME in WORDS do COMMANDS;

Captive NTFS doesn't work with USB HDD
Specs: Fedora Core 5, kernel 2.6.17-1.2157FC5smp. captive-static-1.1.7-0 Gigabyte GA-8ANXP-D mobo Samsung (Western Digital mech) 320GB USB2 HDD. I can mount...

without giving any examples asto what NAME could look like and whether commands should be separated by semi-colons or back-slashes between them, etc. So my experimenting has so far failled.

Pureheart



Your Ad Here

List | Previous | Next

Captive NTFS doesn't work with USB HDD

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Web get command wget to download all iconspics on a web page too large or