請教一個shell script的寫法 - Linux

Table of Contents

各位版友好

小弟想要處理一個樹狀結構的資料

假設我現在有一個資料夾dir1

其結構可能是

dir1
├── dir2
│ ├── dir4
│ ├── file1
│ └── file2
├── dir3
│ ├── file1
│ ├── file2
│ └── file3
├── file1
└── file2

當然這不是唯一的結構

現在我想要處理dir1中的所有的file(比如說將檔名file1改成newfile1)

請問這個script該怎麼寫會比較好?

謝謝

--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★    (○ ?
╦╦└□ " ○□═ □   □>
║║√√ ╦══╦ ∥    |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己

--

All Comments