anton <[EMAIL PROTECTED]> writes:

> > ls | grep -v "\.dat$" | xargs cat > newfile
> >
> 
> Even better! Cheers,
> I have heard of most of these commands but it is a matter of
> remembering them all at once... anyone had any ads for brain enlargers
> in their inboxes recently?
> 
> ;-0
> Anton
> 

Or how about
 
cat `ls | grep -v '\.dat$'` > newfile2

note the use of backticks. 


-- 
--
|Andrew Tarr | [EMAIL PROTECTED]        |  http://arc.stuff.gen.nz
|GPG Public Key:- http://arc.stuff.gen.nz/andrew.gpg
|_____
"There is no excellent beauty that hath not 
some strangeness in the proportions" 
--Francis Bacon
|~~~~~
|

Reply via email to