Re: Parsing a file name in the shell

2002-02-06 Thread Ron Mullins
On Wed, 2002-02-06 at 11:52, Mark Asselstine wrote: > You can shorten > rm -rf {1,2,3,4,5,6,7,8,9,0}foo > to > rm -rf [0-9]* > > This will remove any file or directory which has a numeric beginning for > the > directory you run the command from. Ideally you would put this in an > executable > scri

Re: Parsing a file name in the shell

2002-02-06 Thread Ron Mullins
On Wed, 2002-02-06 at 11:19, Andrew Perrin wrote: > Note the rm -rf line, which does what you're asking. But note also that > script kiddies may be capable of generating other devious filename > patterns, including those that start with . . Yeah, I've seen that and worse, but most of those names

Re: Parsing a file name in the shell

2002-02-06 Thread Ron Mullins
On Wed, 2002-02-06 at 10:51, Ron Johnson wrote: > Try: >ls [0-9]* > > This is a minimalistic use of Regular Expressions. A simple script to > delete these sub-directories might be: > #!/bin/sh > for i in `ls [0-9]*`; do > echo $i > rm -rf $i > done > Thanks, that is exact

Parsing a file name in the shell

2002-02-06 Thread Ron Mullins
back off, but it is annoying to have to do this manually. Annonymous uploads are needed so I can't turn that feature off. Thanks in advance. -- Ron Mullins DigiTerra, Inc. IT Network Engineer Email: [EMAIL PROTECTED] Phone: 219-247-4870

Re: Debian box unable to HTTP to www.nai.com - FIXED

2001-08-10 Thread Ron Mullins
On 10 Aug 2001 13:31:32 -0500, Michael Heldebrant wrote: > Apparently the hero didn't notice the evil villian twirling his > handlebar moustache, hiding in the shadows. Oh, the villian is a given. It's just trying to figure out which of the townsfold was not given the love they needed as a child.

Debian box unable to HTTP to www.nai.com

2001-08-10 Thread Ron Mullins
::Looking up www.nai.com first ::Looking up www.nai.com ::Making HTTP connection to www.nai.com ::Alert!: Unable to connect to remote host. :: ::lynx: Can't access startfile http://www.nai.com/ The Saga begins Our intrepid hero had setup a mail relay (Debian and postfix) and wanted to use the

Emergency: RADIUS server HDD down!

2001-01-09 Thread Ron Mullins
I think I might have a problem. ;-) My radius server (an old DELL P75 with two old Western Digitals) had the second drive (holding /usr) go down. e2fsck gave me: * e2fsck 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Couldn't find ext2 superblock, trying backup blocks... e2fsck: Bad magic numb