Possible Duplicate:
Batch renaming files
Let us assume that I have six files named:
1.a, 1.b, 1.c
2.a, 2.b, 2.c
where a,b,c are file extensions like sh, txt etc.
Now, I want to rename the files 1.a, 1.b, 1.c
with say 5.a, 5.b, 5.c
and 2.a, 2.b, 2.c
with 6.a, 6.b and 6.c
. Here both 2
and 6
are user supplied inputs.
read -p
to combine theread
and the prompt in the same command. – jordanm Jan 15 '13 at 06:27