pointer_file_list=""
for file_name in `ls 文件夹名`
do
if [[ pointer_file_list = "" ]]
then
pointer_file_list="文件夹名/${file_name}"
else
pointer_file_list="${pointer_file_list},文件夹名/${file_name}"
fi
done
pointer_file_list=""
for file_name in `ls 文件夹名`
do
if [[ pointer_file_list = "" ]]
then
pointer_file_list="文件夹名/${file_name}"
else
pointer_file_list="${pointer_file_list},文件夹名/${file_name}"
fi
done
本文标题:shell循环+判断组合
本文链接:https://www.haomeiwen.com/subject/lgmzprtx.html
网友评论