Mailinglist Archive: opensuse (1696 mails)

< Previous Next >
Re: [opensuse] HELP - How to I delete a directory that won't die! (no rm -rf isn't the answer) [Solved]
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 17 Jul 2009 02:13:02 -0500
  • Message-id: <200907170213.02277.drankinatty@xxxxxxxxxxxxxxxxxx>
On Thursday 16 July 2009 11:55:38 pm David C. Rankin wrote:
On Thursday 16 July 2009 11:03:33 pm Patrick Shanahan wrote:
* David C. Rankin <drankinatty@xxxxxxxxxxxxxxxxxx> [07-16-09 23:51]:

try midnightcommand in a text console.

OK,

Here is the issue. mc seems to be running and deleting the files after
I selected the directory and told it to delete rather than trying to descend
into the directory. mc is working on deleting thousands of files named:

/home/samba/computer/fonts/V2/.directory.lock.Esto70
/home/samba/computer/fonts/V2/.directory.lock.bgVe70
/home/samba/computer/fonts/V2/.directory.lock.XrXa70
/home/samba/computer/fonts/V2/.directory.lock.IaWj70
/home/samba/computer/fonts/V2/.directory.lock.NpUm70




Patrick, thanks,

mc worked! Judging from the time of my first post, mc took just over 3
hours to delete all of the files in the fonts/V2 directory. There must have
been thousands and thousands of them. That is really strange that using
(misusing) 'tr' could cause the thousands of files to be created.

Looking at my bash_history, one of the following commands is the one
that did it:

4942 for i in $(ls); do tr [A-Z] [a-z] $i; done
4943 for i in $(ls); do tr [a-z] $i; done
4945 for i in $(ls); do echo $(tr [a-z] $i); done
4946 for i in $(ls); do echo $(tr $i [a-z]); done
4947 for i in $(ls); do echo $i; done
4948 for i in $(ls); do echo $i | tr 'a-z'; done
4949 for i in $(ls); do echo $i | tr [a-z]; done
4950 for i in $(ls); do echo $i | tr 'A-Z' 'a-z'; done

I never knew 'tr' could have such adverse side effects. I wonder which
one did it?


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >