2015년 8월 30일 일요일

탭을 공백으로 바꾸기 - II

sed 를 사용했던 것은 아래 참조.
http://marunguy.blogspot.kr/2010/11/sed-%EB%A1%9C-%ED%83%AD%EC%9D%84-%EA%B3%B5%EB%B0%B1%EC%9C%BC%EB%A1%9C-%EB%B0%94%EA%BE%B8%EA%B8%B0.html

expand 를 이용하는 방법.
http://linux.die.net/man/1/expand
http://stackoverflow.com/questions/11094383/how-can-i-convert-tabs-to-spaces-in-every-file-of-a-directory

모든 탭을 공백으로 변환.
expand -t 4 tab.txt > space.txt
줄의 앞부분 탭만 공백으로 변환.
expand -i -t 4 tab.txt > space.txt

2015년 8월 24일 월요일

Git cannot create a file or directory with a long path


tortoisegit + msysgit 사용시 파일경로가 너무 길 경우(260자이상) 에러가 발생.
구글링해보면 윈도API 문제라고..
https://github.com/msysgit/msysgit/wiki/Git-cannot-create-a-file-or-directory-with-a-long-path
시작프로그램->git->git bash 를 실행하고 다음 입력.
git config core.longpaths true
git config --global core.longpaths true

이렇게해도 tortoisegit 에는 영향을 안 미치는 듯..
"tortoisegit context menu->설정->Git->시스템.gitconfig 편집하기" 클릭.
"core" 섹션에 "longpaths = true" 추가.
[core]
    symlinks = false
    autocrlf = false
    longpaths = true

....

2015년 8월 21일 금요일

VirtualBox and Hyper-V

Hyper-V가 설치되어서 ON된 상태에서는 VT-x 나 SVM 를 CPU 가 지원하지않는 것 처럼 보이게 된다.
그러면 VirtualBox에서 64비트OS 를 설치할 수 없다.
Hyper-V 를 삭제하거나 아래처럼 Hyper-V 를 끄고 리부팅~~ 
bcdedit /set hypervisorlaunchtype off
켜고 싶으면
bcdedit /set hypervisorlaunchtype auto 
 https://derekgusoff.wordpress.com/2012/09/05/run-hyper-v-and-virtualbox-on-the-same-machine/