On Fri, May 10, 2002 at 03:08:14PM +0200, Nik Engel wrote: > i want to select a numer of files and cat the content of a file to all > selected. > I try this by: > find -name "db.[^0-9^root^local^netrt]*" -print | cat tmp/db.netrt.de > $1 > or > find -name "db.[^0-9^root^local^netrt]*" -print | xargs cat tmp/db.netrt.de > $1
You can't use $1 that way. Use the second of your two commands and drop the $1. Even that probably isn't quite what you want, I think. If you're trying to append tmp/db.netrt.de to all the files you find, try this instead: for x in `find -name "db.[^0-9^root^local^netrt]*" -print`; do cat tmp/db.netrt.de >> $x; done There are variants of this with xargs too (involving the -i option), but they're more obscure. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

