Bash script 로 디렉토리 내 euc-kr 파일 utf-8 변환하기
macOS 에서 디렉토리 내 재귀적으로 파일들 인코딩 변환 bash script #!/bin/bash # 사용법: convert-euckr2utf8.sh . txt # 첫번째 인자는 변환을 적용할 디렉토리 경로 # 두번째 인자는 확장자명 # 결과는 파일명.utf8.확장자 dest=$1 ext=$2 if [[ -z "$1" ]]; then echo "Need first argument: destnation folder" exit 1 fi if [[ -z "$2" ]]; then echo "Need second argument: file extension" exit 1 fi find "$dest" -name "*.${ext}" -type f | \ (while read file; do iconv -f euc..
OS-서버-서비스/macOS
2016. 11. 27. 17:43
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- sencha touch
- Android
- API
- git
- 안드로이드
- Wordpress
- Prototype
- Debug
- iphone
- IE
- iis
- macos
- classic asp
- javascript
- laravel
- 한글
- PHP
- 워드프레스
- JQuery
- Docker
- nodejs
- IOS
- nginx
- CSS
- Linux
- mssql
- Mac
- ASP
- centos
- JSON
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함