change a group of file names

Hi,
Is there any Unix command which can change all files whose names ended with .a to  .b ?
(mv  *.a  *.b doesn't work)

Thanks
tianAsked:
Who is Participating?
 
ahoffmannConnect With a Mentor Commented:
ls *.a | sed -e 's/\(.*\)\.a/mv \1.a \1.b/' | sh
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.