Hi All,

I wanted to do a mass rename of "Apple.*" to "Mac.*" with
bash and I could not figure out the error.

I eventually did find it and I have to blame Perl for it!

Chuckle.

for F in Apple*; do $G=$(echo $F | sed -e 's/^Apple/Mac/'); mv $F $G; echo "$F --> $G"; done

Did you catch the error?  I stared and stared at it for about
ten minutes.

-T










It is "do G=" not "do $G="

Reply via email to