building a large file

Darren New dnew at san.rr.com
Mon Apr 16 14:14:46 EDT 2001


Steve Purcell wrote:
> 
> Steve Holden wrote:
> > Danger, Will Robinson. This will include directories (current and parent, .
> > and .. respectively) in your match, probably not a good idea. I seem to
> > remember that the correct pattern should be
> >
> > $ cat .??* * > mylargefile
> >
> > but I have no doubt this too will prove to be wrong in some subtle way I
> > have omitted to consider.
> 
> Yes, it wouldn't match a file called '.x' because of the two question marks.

It will also match "mylargefile", resulting in you filling up the entire
partition.

Been there, done that, ate the VP's mailbox, got yelled at.

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST).  Cryptokeys on demand.
        schedule.c:7: warning: assignment makes calendar_week 
                          from programmer_week without a cast.





More information about the Python-list mailing list