請問如何改多重資料夾內的特定檔案名稱 - Linux

By Charlie
at 2015-12-09T20:18
at 2015-12-09T20:18
Table of Contents
我這邊有很多資料夾,
a/
a/b/
b/c/d
類似這樣,大家位置不同,內部有個檔案叫xyz,我希望所有xyz都改名成fgh
問題是mv除了改檔名也會改位置,如果我用find . -name xyz -exec mv {} fgh \;
會把所有檔案弄到工作資料夾,還會互相蓋台,我是希望他們待在原本地方,
只是換個名,請問要怎麼辦?
--
小黃小黃別生氣,明天帶妳去看戲。
我坐椅子妳坐地,我吃雞腿妳啃骨。
--
a/
a/b/
b/c/d
類似這樣,大家位置不同,內部有個檔案叫xyz,我希望所有xyz都改名成fgh
問題是mv除了改檔名也會改位置,如果我用find . -name xyz -exec mv {} fgh \;
會把所有檔案弄到工作資料夾,還會互相蓋台,我是希望他們待在原本地方,
只是換個名,請問要怎麼辦?
--
小黃小黃別生氣,明天帶妳去看戲。
我坐椅子妳坐地,我吃雞腿妳啃骨。
--
Tags:
Linux
All Comments

By Bethany
at 2015-12-11T00:01
at 2015-12-11T00:01

By Skylar Davis
at 2015-12-11T05:39
at 2015-12-11T05:39

By Daph Bay
at 2015-12-15T07:41
at 2015-12-15T07:41

By Edwina
at 2015-12-17T12:00
at 2015-12-17T12:00

By Vanessa
at 2015-12-19T22:12
at 2015-12-19T22:12

By Ina
at 2015-12-22T08:31
at 2015-12-22T08:31

By Vanessa
at 2015-12-23T12:54
at 2015-12-23T12:54

By Zora
at 2015-12-26T15:05
at 2015-12-26T15:05

By Wallis
at 2015-12-27T17:41
at 2015-12-27T17:41

By Valerie
at 2015-12-29T23:23
at 2015-12-29T23:23
Related Posts
ld 指令問題

By Odelette
at 2015-12-09T19:01
at 2015-12-09T19:01
Re: 請問關於自由軟體的授權用

By Rebecca
at 2015-12-09T10:14
at 2015-12-09T10:14
Re: 請問關於自由軟體的授權用

By Kristin
at 2015-12-09T03:53
at 2015-12-09T03:53
NFS SERVER

By Doris
at 2015-12-08T23:11
at 2015-12-08T23:11
請問關於自由軟體的授權用

By Tracy
at 2015-12-08T21:44
at 2015-12-08T21:44