
25 Jun
2010
25 Jun
'10
1:03 p.m.
* Trasschaert Karl
Hi, I've the same problem: administrator@ubuntu10:/opt/otrs/var/cron$ sudo for foo in *.dist; do cp $foo `basename $foo .dist`; done-bash: syntax error near unexpected token `do'
The ; ends the sudo command. Apply quotes or put for foo in *.dist; do cp $foo basename $foo .dist; done into a file and use: chmod 755 file sudo ./file -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de