일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Spain
- QT
- Book review
- program
- Programming
- Italy
- Software Engineering
- Kuala Lumpur
- Linux
- hadoop
- agile
- essay
- web
- history
- programming_book
- Java
- psychology
- ubuntu
- RFID
- hbase
- erlang
- Malaysia
- France
- MySQL
- management
- Python
- leadership
- django
- Book
- comic agile
- Today
- Total
목록Linux Command (3)
vi로는 거의 열기 힘든 매우 큰 문서에 NULL character가 있어서 살펴봐야 하는 경우 head나 tail로 redirection을 하면 알 수 있다 ex) head -n [line number] [file name] > [other name] 그냥 head -n [line number] [file name]로 출력하면 stdout에서는 NULL character를 자체적으로 처리해 볼 수가 없다
2009/08/17 - [Programming] - diff, find, md5sum, patch 그냥 grep으로 찾을 때 너무 많은 파일을 검색하므로 원하는 종류의 파일에서만 찾으려면 $ find . -name [file name] -exec grep -Hn [string to find] {} \; grep -R: recursively search in directories -I: skip binary files -w: search those which is identical to whole word -H: print file name -n: print line number 함수 선언/구현된 곳을 찾으려면 일단 source 작성 시 규칙을 가지고 있어야 한다. 예를 들어 여기서는 선언/구현인 경우 함..
출처: 열씨미와 게을러의 리눅스 개발 노하우 탐험기 diff 명령을 사용할 때는 습관적으로 -u option을 같이 사용하거나, .bashrc등에 alias로 diff를 diff -u로 지정하자 alias diff='diff -u' find(1) command의 -newer option은 해당 파일보다 더 최신 파일만을 출력 주의할 점 1. 날짜가 변경되었지만 파일 내용이 동일하면(ex. 무의미한 저장 명령으로 인한 파일 생성 시각 변경) 다시 선별을 해야 함 2. 더 최신 파일이 아니어도 직전에 변경된 파일이 존재할 수도 있음 내용을 기반으로 파일 크기가 동일해도 내용이 다른 것까지 찾으려면 md5sum을 사용 1. 기존이 되는 checksum file 생성 $ find [directory path] ..