2013년 12월 22일 일요일

linux-vim-misc

vim 

set autochdir
set autoindent
set smartindent



grep

search string in a file or files
command option searchstring path

grep -Iinr '^obref' .


find

search file list in directory

command path option regular expression

find . -name '*.[ch]'


find + grep

find . -name '*.[ch]' | xargs grep -in '^obref'


Windows Findstr

command searchstring path(windows style) - '.' not work opposite to linux shell
findstr printf *.c









댓글 없음:

댓글 쓰기