我需要删除的扩展名 “.tex”:子目录删除扩展
./1-aoeeu/1.tex
./2-thst/2.tex
./3-oeu/3.tex
./4-uoueou/4.tex
./5-aaa/5.tex
./6-oeua/6.tex
./7-oue/7.tex
请下面一些工具做到这一点:
桑达并找到
红宝石
Python
我可怜的尝试:
$find . -maxdepth 2 -name "*.tex" -ok mv `sed '[email protected]@@g' {}` {} +
+1,对于“读线”,我搞乱了'-exec` – nik 2009-07-30 06:20:02
同意。 “find ... | while read”是我最喜欢的bash单线模板之一。 – Cascabel 2009-07-30 14:54:54