2020-07-30 shellで拡張子を落とす方法 shell shellで拡張子を落とす方法 : cut commandを使う name=$(echo "$filename" | cut -f 1 -d '.')