## 字符串的子串替换 ```bash ${str/abc/xy/} ``` ## 遍历目录 ```bash file_list=`ls ${my_dir}` for file_i in ${file_list}; do echo $file_i done ```