标签:文件夹 $1 else inf read code cti fun dir
#!/bin/bash dirpath=$1 function read_dir() { for file in `ls $1` do #echo "$1:"$1 if [ -d $1/$file ];then cd $1/$file read_dir $1"/"$file cd - else echo `pwd`/$file fi done } read_dir $dirpath
标签:文件夹 $1 else inf read code cti fun dir
原文地址:https://www.cnblogs.com/luckygxf/p/12312047.html