Contents

Views 10861 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
1077 System/OS [linux] ipchains 사용예(패킷 필터링) hooni 2003.04.23 14232
1076 System/OS [linux] ipfwadm를 이용한 패킷필터링(구버전) hooni 2003.04.23 13082
1075 System/OS [windows] 98/ME 속도 빠르게 튜닝(부팅,메모리,레지스터) hooni 2003.04.23 50519
1074 System/OS [windows] 도스 사용 팁 hooni 2003.04.23 17887
1073 System/OS [windows] 여러가지 활용 팁 hooni 2003.04.23 20023
1072 System/OS [windows] 배치(bat)파일 제작 방법 hooni 2003.04.23 17052
1071 System/OS [linux] 패킷 스니퍼링 hooni 2003.04.23 16368
1070 System/OS [linux] 패킷의 소스 주소 바꾸기 hooni 2003.04.23 18842
1069 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11396
1068 System/OS [linux] 간단한 NAT 설정 script hooni 2003.04.23 12644
1067 System/OS [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. hooni 2003.04.23 14771
1066 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15295
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 98 Next
/ 98