shell遍历文件夹及去掉文件后缀名

mac2024-11-30  22

#!/bin/bash path=`pwd` echo $path; files=$(ls $path) for filename in $files do filename=${filename%.*} echo $filename done

 

最新回复(0)