Re: Deleting directories

2005-09-11 Thread Ivailo Bonev
On Sun, 11 Sep 2005 20:21:40 +0300, Rem P Roberti <[EMAIL PROTECTED]> wrote: How does one go about deleting directories and their contents? RMDIR will only delete empty directories. Thanks, Rem ___ freebsd-questions@freebsd.org mailin

Re: Deleting directories

2005-09-11 Thread Chris Hill
On Sun, 11 Sep 2005, Rem P Roberti wrote: How does one go about deleting directories and their contents? RMDIR will only delete empty directories. rm -rf directory works for me. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging

Re: Deleting directories

2005-09-11 Thread Beecher Rintoul
On Sunday 11 September 2005 09:21 am, Rem P Roberti wrote: > How does one go about deleting directories and their contents? RMDIR will > only delete empty directories. > Try: rm -R /path/to/d

Re: Deleting directories

2005-09-11 Thread Robert Slade
On Sun, 2005-09-11 at 18:21, Rem P Roberti wrote: > How does one go about deleting directories and their contents? RMDIR will > only delete empty directories. > > Thanks, > > Rem Try man rm Rob ___ freebsd-questions@freebsd.org

Re: Deleting directories

2005-09-11 Thread Fabian Keil
Rem P Roberti <[EMAIL PROTECTED]> wrote: > How does one go about deleting directories and their contents? RMDIR will > only delete empty directories. rm -r directory Fabian -- http://www.fabiankeil.de/ pgpYmxUJAXhHM.pgp Description: PGP signature

Deleting directories

2005-09-11 Thread Rem P Roberti
How does one go about deleting directories and their contents? RMDIR will only delete empty directories. Thanks, Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any

deleting directories with ??? in name

2004-11-23 Thread ed
I've written a command line utility to deal with this type of thing. It's called duc. You can get it at: http://ed.lexingrad.net/duc/ duc takes out unprintables, extended ascii set chars, spaces and punctuations, with options to allow you to take out some while leaving others. Also there is a test

Re: deleting directories with ??? in name

2004-04-09 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Walter thusly... > > It looks like another directory structure has appeared in the ftp > directory that Lynx does not "see" and that >find . -inum -delete > does not delete. It does have a dot as the first character, with > some other non-printing charact

Re: deleting directories with ??? in name

2004-04-09 Thread Walter
Hi Parv, It looks like another directory structure has appeared in the ftp directory that Lynx does not "see" and that find . -inum -delete does not delete. It does have a dot as the first character, with some other non-printing characters, but no "/". I haven't yet tried to delete it wit

Re: deleting directories with ??? in name

2004-03-19 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Walter thusly... > I apologize for the late reply. > Parv wrote: > > > # find . \( -inum -o -inum \) -print0 \ > > # | xargs -0 rm -rfv > > > > Thanks, but when I did: > ls -i > and then typed in the inode in the command (saved in an old List > e-mail)

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-16 Thread Walter
Matthew Seaman wrote: On Mon, Mar 15, 2004 at 07:07:46PM -0800, Chris Pressey wrote: That wouldn't explain why 'rm -i *' returned 'no match', though. Just to eliminate the obvious: did these weird filenames begin with a '.'? Shell globbing treats file names with a leading period specially. Yo

Re: deleting directories with ??? in name

2004-03-16 Thread Walter
Parv wrote: in message <[EMAIL PROTECTED]>, wrote Parv thusly... # find . \( -inum -o -inum \) -print0 \ # | xargs -0 rm -fv Oh, don't forget the '-r', for recursion, option for rm(1) as i did. Use this instead... # find . \( -inum -o -inum \) -print0 \ # | xargs -0 rm -rfv - Par

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-16 Thread Walter
Chris Pressey wrote: Walter, out of curiousity, what FTP server were you running, and (if you remember) what was the exact output of ls -aB ? I'm running, at the moment, the default ftpd in FBSD 4.6.2. (Yeah, I know, it's way old.) I don't remember the exact output, but contained mostly odd charac

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-16 Thread Matthew Seaman
On Mon, Mar 15, 2004 at 07:07:46PM -0800, Chris Pressey wrote: > That wouldn't explain why 'rm -i *' returned 'no match', though. Just to eliminate the obvious: did these weird filenames begin with a '.'? Shell globbing treats file names with a leading period specially. You'ld have to do: %

Re: deleting directories with ??? in name

2004-03-15 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Parv thusly... > > # find . \( -inum -o -inum \) -print0 \ > # | xargs -0 rm -fv Oh, don't forget the '-r', for recursion, option for rm(1) as i did. Use this instead... # find . \( -inum -o -inum \) -print0 \ # | xargs -0 rm -rfv - Parv

Re: deleting directories with ??? in name

2004-03-15 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Walter thusly... > > Erik Trulsson wrote: > > > ls(1) by default displays all unprintable characters as question > > marks. To see what the filenames actually are use 'ls -aB'. > > > > To delete files with strange names you can always do a 'rm -i *' > > and an

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-15 Thread Bill Campbell
On Mon, Mar 15, 2004, Chris Pressey wrote: >On 15 Mar 2004 20:26:12 -0500 >Lowell Gilbert <[EMAIL PROTECTED]> wrote: > ... > >That wouldn't explain why 'rm -i *' returned 'no match', though. > >I think it's more likely that (for whatever reason) the FTP server is >allowing files to be created with

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-15 Thread Chris Pressey
On 15 Mar 2004 20:26:12 -0500 Lowell Gilbert <[EMAIL PROTECTED]> wrote: > Walter <[EMAIL PROTECTED]> writes: > > > I managed to delete the files by recreating the directory. > > > > Not to seem ungrateful, but isn't it a Bad Thing that it > > is not straightforeward to delete any file on the sys

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-15 Thread Lowell Gilbert
Walter <[EMAIL PROTECTED]> writes: > I managed to delete the files by recreating the directory. > > Not to seem ungrateful, but isn't it a Bad Thing that it > is not straightforeward to delete any file on the system > (as root, and thwarted merely because of the characters in > the name of the fi

Re: [Fwd: Re: deleting directories with ??? in name]

2004-03-15 Thread Kevin D. Kinsey, DaleCo, S.P.
Walter wrote: I managed to delete the files by recreating the directory. Ah, you have the hacker nature, then. That is probably a Good Thing(TM) ... I was going to suggest $cp * ../otherdir/ $cd .. && rmdir thatdir $mv otherdir thatdir :-) Not to seem ungrateful, but isn't it a Bad Thing that i

[Fwd: Re: deleting directories with ??? in name]

2004-03-15 Thread Walter
can't traverse and delete normally? (Sigh.) Original Message ---- Subject: Re: deleting directories with ??? in name Erik Trulsson wrote: On Mon, Mar 15, 2004 at 03:51:37PM -0800, Derrick Ryalls wrote: I've tried lynx, but it did not display the files. I tried emacs, but

Re: deleting directories with ??? in name

2004-03-15 Thread Walter
Erik Trulsson wrote: On Mon, Mar 15, 2004 at 03:51:37PM -0800, Derrick Ryalls wrote: I've tried lynx, but it did not display the files. I tried emacs, but I was only able to rename two of the directories to other names I could delete; the other two gave me an error of illegal character. I tried

Re: deleting directories with ??? in name

2004-03-15 Thread Erik Trulsson
On Mon, Mar 15, 2004 at 03:51:37PM -0800, Derrick Ryalls wrote: > > > > I've tried lynx, but it did not display the files. > > I tried emacs, but I was only able to rename two of the > > directories to other names I could delete; the other two gave > > me an error of illegal character. I tried '

RE: deleting directories with ??? in name

2004-03-15 Thread Derrick Ryalls
> > I've tried lynx, but it did not display the files. > I tried emacs, but I was only able to rename two of the > directories to other names I could delete; the other two gave > me an error of illegal character. I tried 'rm -i -- ?*' but > it didn't find the files. I tried 'find . -inum 146 -d

deleting directories with ??? in name

2004-03-15 Thread Walter
I've tried lynx, but it did not display the files. I tried emacs, but I was only able to rename two of the directories to other names I could delete; the other two gave me an error of illegal character. I tried 'rm -i -- ?*' but it didn't find the files. I tried 'find . -inum 146 -delete' but while