我想递归地更改许多raw.tex
名为parent-directory-hw.tex
.有没有简单的脚本解决这个问题?
例如,运行脚本
.
`-- root
|-- baz
| `-- raw.tex
|-- foo
| `-- bar
| `-- raw.tex
`-- spam
|-- eggs
| `-- raw.tex
`-- raw.tex
应该导致
.
`-- root
|-- baz
| `-- baz-hw.tex
|-- foo
| `-- bar
| `-- bar-hw.tex
`-- spam
|-- eggs
| `-- eggs-hw.tex
`-- spam-hw.tex