如何大量更改資料夾名稱 - Linux

Table of Contents

有資料夾 是用數字-數字來組成 我想把-都消掉
例如1866-4048-4932-7791-0788 我想把-拿掉 改成 18864048493277910788

想大量改 有什麼方法嗎

感謝

--

All Comments

Mason avatarMason2014-10-31
find ./ -maxdepth 1 -exec sh -c
'echo "{}" `echo "{}" | tr -d -`' \; 以上為一行
Hamiltion avatarHamiltion2014-11-03
檢查沒問題的話把echo換成mv
Quintina avatarQuintina2014-11-08
第一個echo
Margaret avatarMargaret2014-11-12
感謝 可以用