- 论坛徽章:
- 0
|
首先感谢3楼楼主,我按照您的指点编写了脚本,运行时屏幕上不停的输出
./systemonitor.sh: line 3: date_dat: command not found
./systemonitor.sh: line 4: date_tar: command not found
./systemonitor.sh: line 14: date_dat: command not found
......
不知道是什么原因
二、文件超过100k时,重合名的文件名不是按"datfile_开始时间_结束时间.dat"形式
而是按"datfile_开始时间.dat"形式
3. 当所有被重命名后的.dat文件大小之和大于1MB字节时,将这些.dat文件打包压缩成.tar.gz格式,存放到当前目录下的archive子目录(命名形式:datfile_第一个dat文件的
开始时间_最后一个dat文件的结束时间.tar.gz),
运行命令,结果在archive子目录下有很多的tar.gz文件,题的意思应该是只有一个压缩文件,里同包含了名称为---“datfile_开始时间_结束时间.dat"的所有.dat文件
还望指教,期等中。。。。 |
|