vi 고수님 word를 find해서 line을 삭제 하는 방법 아시나요?

gilho의 이미지

알면 꼭 답글점...

log를 분석 하다보면 반복 되는 sendmail 정보는 한번에 모두 삭제 하고 싶을때..어떻게 해야 하는지.. 갈켜 주세요..

지리즈의 이미지

grep -v it.is.not.required filename | more 
or
grep -v it.is.not.required filename > new_file

There is no spoon. Neo from the Matrix 1999.

seoleda의 이미지

sort와 uniq를 사용하시는게 좋을 것 같습니다.

sort log_file | uniq > new_log 정렬되어 있다면 uniq log_file > new_log