Develop
2014.02.19 10:46
[unix] 로그파일 정리 쉘스크립트
조회 수 10861 댓글 0
파일을 크기를 0으로 만드는 쉘스크립트
파일 크기를 0으로 만드는 스크립트는 각종 로그 파일을 0으로 만들어 줄 때 사용될 수 있다.
# 코드
#!/usr/bin/csh # usage : % zero file1 file2 file3 ... set num = $#argv while ( $num > 0 ) cp /dev/null $1 shift @ num-- end
[출처] https://www.hooni.net/xe/578
-
[android] Calling activity function from separate class
-
[Android Error] The number of method references in a .dex file cannot exceed 64K
-
[android] dp, px 서로 변환
-
[matlab] ZigZag-Scanning (2-D Array)
-
[c] Mac OS 에 gmp(gmp.h) 라이브러리 설치
-
[ios][swift] 초간단 카달로그 앱 (Catalog App)
-
[ios] 웹뷰 history.back() ㅋㄷ
-
[ios] 기본 네비게이션바의 타이틀, back버튼 위치와 속성 변경
-
[ios] UUID 생성 + Key Chain 연동
-
[ios] Did UIScrollView End Scrolling?
-
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
-
[ios] 언어, 지역, 국가 설정 가져오기