shell 打印当前路径/目录下的所有文件的文件名 程序员牛牛关注IP属地: 青海 2020.08.31 14:47:37字数0阅读1,810 path=`cd $(dirname $0);pwd -P` echo the current path is:$path for i in `ls` do echo $i done filename=`basename $0` echo file name is:$filename ...