lang2015. 1. 20. 17:57

# 디렉토리 및 파일이름에 space있을 경우 비정상 인식하므로 \n을 Field separator로 잡는다.

IFS=$'n'


# 검색된 file들중에서 

for i in `find ./ -type f`

do

#utf-8 한글 코드범위만 검색

result = `grep -n -p "[\x{AC00}-\x{D7A3}]" $i`

if [ `echo $result | wc -l` -get 1 ] 

then 

echo "==========================================="

echo "$i"

echo "==========================================="

echo $result 

echo $i >> filelist.txt

echo

fi

done

'lang' 카테고리의 다른 글

java app proxy port 설정  (0) 2015.08.10
Posted by wooix
env/env. vim2015. 1. 20. 17:52
C:\Program Files\Vim\_vimrc.html
 1 :colo koehler
 2 set tabstop=4
 3 set title
 4 set number
 5 syntax on
 6 set background=dark
 7 set nu
 8 
 9 set hls is
10 set ic
11 
12 set ai
13 set si
14 set shiftwidth=4
15 
16 set nobackup
17 set ruler
18 
19 set showcmd
20 set showmatch
21 
22 set autowrite
23 set fenc=korean
24 set fencs=ucs-bom,utf-8,euc-kr,latin1
25 
26 au BufWinLeave *.sh mkview
27 au BufWinLeave *.sh silent loadview
28 set nocompatible
29 source $VIMRUNTIME/vimrc_example.vim
30 source $VIMRUNTIME/mswin.vim
31 behave mswin
32 
33 set showcmd             " Show (partial) command in status line.
34 set showmatch           " Show matching brackets.
35 set ignorecase          " Do case insensitive matching
36 set smartcase           " Do smart case matching
37 set incsearch           " Incremental search
38 set autowrite           " Automatically save before commands like :next and :make
39 set nu
40 set hidden              " Hide buffers when they are abandoned
41 "set mouse=a            " Enable mouse usage (all modes)
42 set background=dark
43 
44 autocmd BufReadCmd *.class call <SID>ReadClass(expand("<afile>:p:h"), expand("<afile>:t:r"))
45 
46 function s:ReadClass(dir, classname)
47     execute "cd " . a:dir
48     "execute "!jad -noctor -ff -i -p " . a:class
49     execute "0read !jad -noctor -ff -i -p " . a:classname
50     "au bufreadpost, filereadpost %!d:jad -noctor -ff -i -p %
51     1
52     set ft=java
53     setlocal readonly
54     setlocal nomodified
55 endfunction
56 
57 set diffexpr=MyDiff()
58 function MyDiff()
59   let opt = '-a --binary '
60   if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
61   if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
62   let arg1 = v:fname_in
63   if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
64   let arg2 = v:fname_new
65   if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
66   let arg3 = v:fname_out
67   if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
68   let eq = ''
69   if $VIMRUNTIME =~ ' '
70     if &sh =~ '\<cmd'
71       let cmd = '""' . $VIMRUNTIME . '\diff"'
72       let eq = '"'
73     else
74       let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
75     endif
76   else
77     let cmd = $VIMRUNTIME . '\diff'
78   endif
79   silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
80 endfunction

'env > env. vim' 카테고리의 다른 글

vim encoding 변경  (0) 2014.04.29
빈줄삭제  (0) 2013.12.09
[Vim] .vimrc 기본 설정  (0) 2013.04.16
Posted by wooix
카테고리 없음2014. 10. 29. 09:58

http://www.systemsoftlab.com/spydetector.html


악성코드 수동으로 잡을때~~~

Posted by wooix
tip/tip. HP-UX2014. 6. 23. 11:43

$$ : 스크립트 자신의 PID

$? : 스크립트 자신의 종료 상태 (혹은 이전 명령의 종료상태)

$_ : 이전에 실행된 명령어의 제일 마지막 인자값

$! : 백그라운드로 돌고 있는 가장 최근 PID

$- : 스크립트로 넘겨진 프래그들


$IFS : 구분자

$0 , $1, $2 ....  인자값($0는 script name 자체)

$# : 인자값 count

$* : $1,$2~~ 등등 한방에

$@ : $*와 비슷하지만 $IFS로 구분된 녀석들을 개별 Quate된 문자로 취급????????????

'tip > tip. HP-UX' 카테고리의 다른 글

여러개의 depot 일괄 설치 방법  (0) 2013.11.19
Disk 구성 확인  (0) 2013.10.18
HP_UX Admin II  (0) 2013.08.13
[HP-UX] LVM  (0) 2013.04.16
[HP-UX] HP-UX 기동 순서  (0) 2013.04.16
Posted by wooix
카테고리 없음2014. 4. 30. 17:25

http://www.ubuntu.or.kr/viewtopic.php?p=118517

Posted by wooix