building a large file
Steve Purcell
stephen_purcell at yahoo.com
Mon Apr 16 04:33:41 EDT 2001
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.
I'll see your glob and raise you: ls .[^.]* *
Even better: find . -type f|xargs cat > mylargefile
-Steve
--
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo
More information about the Python-list
mailing list