
기억 저장용 예제는 대량의 csv 파일을 utf-8 로 바꾸는 shell script #!/bin/bash # ls -al *.csv 명령을 실행하여 csv 파일 목록을 가져온다. csv_files=`ls -1 *.csv` # for 문을 사용하여 csv 파일 목록을 하나씩 처리한다. for csv_file in $csv_files; do # iconv를 사용하여 csv 파일의 인코딩을 변환한다. iconv -c -f euc-kr -t utf-8 $csv_file > utf8/$csv_file done
본 파일은 개인 저장용입니다. 설치 # zsh-syntax-highlighting git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting # zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions # fzf brew install fzf # autojump brew install autojump # spaceship git cl..
프로젝트별로 Node Version 관리하기 개요 하나의 프로젝트를 할때는 상관없지만, 기존 레거시를 유지보수하면서, 새로운 프로젝트를 진행해야 할 때, 프로젝트별로 버전이 상이할 때가 있다. 그나마 요즈음은 nvm 있어서 버전을 쉽게 변경가능하지만 이마져도 귀찮은 것이 개발자의 게으름이 아닌가 싶다. 이번에는 프로젝트별로 node 버전을 자동으로 바꿔주는 방법을 사용하려고 한다. 준비물 (본작업은 m1 맥북에서 작업을 진행하였으나, intel 맥도 크게 다르지 않을것으로 추측된다) 1. NVM 2. 버전이 서로 다른 프로젝트 2개 이상 작업 # nvm install brew install nvm # nvm 환경설정 mkdir -p ~/.nvm # 생성된 nvm 환경으로 이동 cd ~/.nvm # 내용 ..