I have something like this:
v_1/file.txt
v_2/file.txt
v_3/file.txt
...
and I want to rename those files to something like this:
v_1.txt
v_2.txt
v_3.txt
...
in the same directory.
I guess I can use rename
but I can't figure out how to use it with folder and file renaming at the same time.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…