$ 0 0 linuxで拡張子を一括変更する方法(例:".txt" → ".word") #!/usr/bin/bash for fname in *.txt; do mv $fname ${fname%.txt}.word; done 備忘録のため残しておきます。