본문 바로가기

Develop/Linux

[Linux] 확장자 변경 쉘스크립트

ls | grep ".html" | cut -d . -f 1 | while read line
do
echo `ls $line.html`
mv $line.html $line.php
done

'Develop > Linux' 카테고리의 다른 글

[Linux] Putty에서 EUC-KR 사용하기  (0) 2013.04.22
[Linux] 특정 파일 삭제  (0) 2013.03.12
[Linux] rsync 이용한 데이터 복사  (0) 2012.11.28
[Linux] Memory 관련  (0) 2012.09.20
[Linux] 하위 특정 폴더/파일들 모두 삭제  (0) 2012.09.10