On Sun, 2004-02-08 at 12:12, anton wrote: > The purpose of this is to cat the actual text of all the files in the > directory that don't end in .dat into a new file. > So far I have: > ls | grep -v "\.dat$" | cat > newfile > but cat just gives me the list of files again. Any way to force cat to > consider the lines as files? Or a better way of doing this?
ls | grep -v "\.dat$" | xargs cat > newfile > Cheers > Anton > ps. and sorry to be anal, but you have your reply to set... Yup, and until I figure out a way to get around my mail server putting its own address in the "from" field instead of the mail client's address that's the way it's gonna stay. Vik :v) -- This PC runs Linux. If you find a virus apparently from me, it has forged the e-mail headers on someone else's machine. Please do not notify me when this occurs. Thanks.
