创建带有当前时间戳的目录

mkdir "test`date +"%y-%m-%d-%H:%M"`"

The result is created a file named: test14-01-12-22:03.

注意,"`"是与"~"一起的同一个键, 不是单引号, 另外, date与+符号之间有空格.

猜你喜欢

转载自darrenzhu.iteye.com/blog/2003237