Can somebody tell me one command which can rename all the files under a directory which are of the form test.c to test.cc without using piping and redirection.
I have written a shell script which contains a loop and does the same work:
for i in *.c;
do
mv $i ${i%c}cc
done
1 Answer