A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/097457.html below:

building a large file

building a large file building a large fileSteve 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4