Contents

Views 10872 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
파일을 크기를 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


?

List of Articles
No. Category Subject Author Date Views
321 System/OS [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) file hooni 2017.12.11 9507
320 System/OS [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일) hooni 2017.12.11 4595
319 System/OS [linux] 최소한의 커널 설정(커널설치 전체과정) hooni 2003.04.23 17480
318 System/OS [linux] 커널 컴파일, 설정 hooni 2003.04.23 17911
317 System/OS [linux] 콘솔 기본언어 설정 방법 hooni 2013.04.23 12879
316 System/OS [linux] 콘솔/Xwindow 에서 PC스피커 소리 없애기 hooni 2003.04.23 16418
315 System/OS [linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ hooni 2003.04.23 13965
314 System/OS [linux] 텔넷, FTP 텍스트 모드에서 사용 hooni 2003.04.23 11998
313 System/OS [linux] 특수문자 환경 설정(stty) hooni 2003.04.23 15343
312 System/OS [linux] 특정 문자열 포함된 파일 찾는 명령어 hooni 2013.10.16 30716
311 System/OS [linux] 파일내 문자열 찾아 바꾸기 hooni 2013.04.23 12267
310 System/OS [linux] 패킷 스니퍼링 hooni 2003.04.23 16378
Board Pagination Prev 1 ... 67 68 69 70 71 72 73 74 75 76 ... 98 Next
/ 98