[lug] Appending a file to files

Glenn Murray gmurray at Mines.EDU
Tue Jan 16 09:33:50 MST 2001


On Tue, 16 Jan 2001, Atkinson, Chip wrote:

> Don't know why it wouldn't work, but how about 
> for i in (bar/*); do
>   cat foo >> $i
> done

Thanks for the response, but this script produces the
following error.  

glenn/$ sh catscr.sh 
catscr.sh: line 1: syntax error near unexpected token `(b'
catscr.sh: line 1: `for i in (bar/*); do'
glenn/$ 

Glenn






More information about the LUG mailing list