发布网友 发布时间:2022-04-22 18:10
共1个回答
热心网友 时间:2023-11-14 22:10
for file in *
do
if [ -f "$file" ]
then
if [ -s "$file" ]
then
printf "File:$file\n"
cat "$file"
else
rm "$file"
fi
else [ -d "$file" ]
printf "Directory:$file\n"
ls "$file"
fi
printf "\n\n\n"
done