>> Edit article
이름
제목
패스워드
${$file%.*} 가 맞나요? 전 ${file%.*} 해야 되던데.. [root@baby:~/tmp] file=aaa.php [root@baby:~/tmp] echo ${$file%.*} bash: ${$file%.*}: bad substitution [root@baby:~/tmp] echo ${file%.*} aaa : 전 그냥 이렇게 하겠습니다. : : for file in `ls *.php`; do mv $file ${$file%.*}.html; done : : 맞나.. --; : : : : 예를들어 *.php 화일을 *.html로 바꾼다면... : : : : 화일명 : exch : : : : for file in $* : : do : : p=${$file%.*} : : mv $file $p.html : : done : : : : : : 실행 : : ./exch *.php [enter] : : : : 많이 쓰이는 유틸인데 안쓰이는 것 같아서 넣습니다.--return true
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved