* Richard Smith <[EMAIL PROTECTED]> [050309 17:58]: > > I always do something like > > cvs update | grep ^? | cut -f2 -d\ |while read name > > do > > diff -uN /dev/null $name >> mypatch.newfiles.diff > > done > > > > but it is not exactly elegant > > I can't seem to make that work. Do I have to protect something from > the shell? I get a bash: syntax error near unexpected token 'done'
What version of bash are you using? It seems to work fine here. echo $BASH_VERSION 3.00.0(1)-release Try replacing the diff with an echo $name to see what's wrong. You also need to watch the space after '-d\ ' Stefan _______________________________________________ Linuxbios mailing list Linuxbios@clustermatic.org http://www.clustermatic.org/mailman/listinfo/linuxbios