脚本内容:
#!/bin/bash#by fuqiang#-04-23function getdir(){for element in `ls $1`dodir_or_file=$1"/"$elementif [ -d $dir_or_file ]thengetdir $dir_or_fileelseecho $dir_or_filefidone}root_dir="/home/"getdir $root_dir
时间:2022-09-23 23:58:30
脚本内容:
#!/bin/bash#by fuqiang#-04-23function getdir(){for element in `ls $1`dodir_or_file=$1"/"$elementif [ -d $dir_or_file ]thengetdir $dir_or_fileelseecho $dir_or_filefidone}root_dir="/home/"getdir $root_dir