Shell脚本实战之生成日志文件

版权声明:如若转载,请联系作者。 https://blog.csdn.net/liu16659/article/details/83419439

Shell脚本实战之生成日志文件

1.代码如下

#!/bin/bash
today=$(date +%y%m%d)
#the cause to use the command ls is in that to bulit a new #file,not in that the command ls.
ls /usr/bin -al > $today.log

猜你喜欢

转载自blog.csdn.net/liu16659/article/details/83419439
今日推荐