On Saturday, Mar 26, 2005, at 15:09 US/Central, Scott Granneman wrote:
why does this command:

for i in $(ls *m3u) ; echo $i ; done

give me this error:

bash: syntax error near unexpected token `echo'

Because "echo" is unexpected. What should follow the semi-colon is a "do" token, as you have in your other examples.


bigger question - why does this command:

for i in $(ls *m3u) ; do rename 's/\ /_/g' $i ; done

do nothing.

rename expects three (3) arguments. You've given it two (2).

neither does this one:

for i in *.m3u ; do rename 's/\ /_/g' $i ; done

Same reason.

But I could be wrong.

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent

_______________________________________________
CWE-LUG mailing list
http://www.cwelug.org/ [email protected]
http://lists.firepipe.net/listinfo/cwe-lug

Reply via email to