편하게 살자 61

vi no autoindentation

vi 사용중 자동인덴테이션으로 에디팅에 문제가 있다면 살며시 아래의 명령어를...:setl noai nocin nosi inde= 원본사이트 : http://vim.wikia.com/wiki/How_to_stop_auto_indenting Disabling auto indent for the current fileEditTo see the current indenting settings, and where they were set, enter::verbose set ai? cin? cink? cino? si? inde? indk? If you are editing a particular file and you want to prevent auto indenting within that file, ente..

편하게 살자 2016.01.03

SED를 이용한 파일내 문자열 일괄 변환

텍스트파일을 다루거나, 개발자라면 자주 만나는 작업입니다.sed 를 이용하여 한방에...ref : http://unix.stackexchange.com/questions/159367/using-sed-to-find-and-replaceref : http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html replace string in the file : by SED (Stream EDitor) A512.html 안의 모든 411 문자열을 512 로 바꾼다. (1회 수행하려면 g 를 제외)ex) sed -i -e 's/411/512/g' ./A512.html find 를 이용한 확장 사용 (다중 파일처리)$ find /home/da..

편하게 살자 2015.12.04

dos에서 linux command 사용 - doskey and ls ll

요즘 맥북사용자가 많이 늘고 있는것 같습니다... 물론 윈도를 버릴수는 없죠, 그러다 보니 도스창에서 많이들 ls 를 입력 하곤 합니다.... 돌아오는 답변이야,,,, 알수 없다죠.. - 매너없는 답변... 그래서 아래와 같이 처리하면 어느정도 도스의 매너없는 답변을 피할 수 있습니다.c:\Users\your-name\autorun.bat@ECHO OFFdoskey ls=dir /b $*doskey ll=dir $*doskey cat=type $*doskey ..=cd..doskey grep=find "$1" $2doskey mv=ren $*doskey rm=del $* regedit :Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\M..

편하게 살자 2014.03.03