프로그래밍/쉘프로그래밍

파일명 변환 쉘

오늘도알찬하루 2019. 3. 7. 13:56
반응형
for x in *.xml; do    t=$(echo $x | sed 's/\.xml$/.txt/');    mv $x $t && echo "moved $x -> $t" done

- 출처 : https://superuser.com/questions/31464/looping-through-ls-results-in-bash-shell-script

반응형