Tutorial:
Online reference:
http://dev.csdn.net/htmls/49/49645.html
- Get the file name of current runing shell script
Just use $0
- Rename all files under the specified folder
DATE=$(date +%Y%m%d); find * -type f | while read file; do mv $file ${file}.${DATE}; done
- Reserve1
- Reserve2
- Reserve3
- ...
- ...
- ...
- ...
阅读(1703) | 评论(0) | 转发(0) |