#!/bin/bash
function read_dir() {
for file in 'ls $1'
do
if[-d $1"/"$file]
then
read_dir $1"/"$file
else
echo $1"/"$file
touch $1"/"$file
fi
done
}
read_dir ./
使用touch更新文件的时间
猜你喜欢
转载自blog.csdn.net/xx18030637774/article/details/102595933
今日推荐
周排行