Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2034197
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类:

2006-03-21 15:27:02

Tutorial:
   
Online reference:
    http://dev.csdn.net/htmls/49/49645.html
   


  1. Get the file name of current runing shell script
    Just use $0

  2. Rename all files under the specified folder
    DATE=$(date +%Y%m%d); find * -type f | while read file; do mv $file ${file}.${DATE}; done
  3. Reserve1
  4. Reserve2
  5. Reserve3
  6. ...
  7. ...
  8. ...
  9. ...


阅读(1678) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~