기억 저장용 예제는 대량의 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
보호되어 있는 글입니다.
intellij 혹은 android studio 에서 freezed 나 drifit 같은 패키지를 쓰면 같은 이름으로 확장자가 다르게 여러파일이 나온다. 사실 직접 눌러서 볼일이 거이 없기 때문에 합쳐서 깔끔하게 보고 싶을 때 쓰는 방법이다. intellij 혹은 android studio 에서 만능찾기인 shift 연속 2번을 누르고 nest 를 검색하면, file nesting.. 이 나온다 해당 파일을 선택하여 같은 확장자끼리 묶어주면 하나의 파일로 합쳐져서 나온다 이제 하나로 합쳐져서 나오는 탐색기를 볼수 있다 !
프로젝트별 node version 자동관리에 이어서 이번엔 php 해보려고 한다. 조건 - docker 사용자라면 필요가 없다. - valet 및 php mon 사용자 - composer 사용자 ( shell script 에서 해당 프로젝트의 php 버전을 composer.json 에서 불러온다 ) - zsh 사용자 (shell script를 수정하면 가능할 것 같은데 이번글 zsh 기준으로 작성되어 있다. - mac 사용자 준비단계 - brew 와 zsh 이 이미 설치되어 있다는 조건하에 시작하게습니다. 1. brew 에서 jq 를 설치합니다 나중에 만들어질 shell script 에서 해석용도로 사용됩니다. # jq instsall brew instsll jq 2. php mon의 환경 변수 등록 (..
본 파일은 개인 저장용입니다. 설치 # 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..
