Shell腳本(remove-sufixes.sh)—去掉指定文件夾下全部文件的文件名後綴

#!/bin/sh path=/usr/soft_r/nginx/logs/flume files=$(ls $path) for filename in $files do   mv /usr/soft_r/nginx/logs/flume/$filename /usr/soft_r/nginx/logs/flume/${filename%.*} done  nginx
相關文章
相關標籤/搜索