编写Shell脚本,实现所有Log文件拷贝到用户主目录的Log目录下。

2025-03-30 22:59:04
推荐回答(1个)
回答1:

写个脚本文件:#!/bin/bashfindlog=`find / -name *.log`
cp $findlog /home/log/