$ du -sk * | sort -nr
(HP-UX)
sgrepall() # find string in all files { find . -type f -print | xargs grep $1 # find . -type f -name "*.c" -print | xargs grep $1 # find . -type f -name "*.cp" -print | xargs grep $1 # find . -type f -name "*.h" -print | xargs grep $1 }
##### END
#### HP-UX tcsh (BEGIN)
alias sgrep 'find ./ -type f -exec grep \!* {} /dev/null \;'
#### HP-UX tcsh (END)
select * from all_col_comments where table_name = "EMP":
php 5.3 기준으로 ereg() 함수 대신 preg_match() 를 써야 한다
#!/bin/csh
set aa=5.67
set round=`echo $aa|awk '{printf "%.0f\n", $1}'`
echo $aa
echo $round
set aa=5.43
set round=`echo $aa|awk '{printf "%.0f\n", $1}'`
echo $aa
echo $round
#!/bin/csh
# demoloop.csh - Sample loop script
set j = 1
while ( $j <= 5 )
echo "Welcome $j times"
@ j++
end
출처:http://www.cyberciti.biz/faq/csh-shell-scripting-loop-example/
cli.sin_addr.s_addr = htonl(0x0f0102fc); // 15.1.2.252
출처: http://erdoy-textcube.blogspot.kr/2009/10/programming-client-socket-port-%EC%A7%80%EC%A0%95.html
구분자 (# 또는 / 를 추가하면 된다
if(!preg_match ("http://", $file)) // (X)
if(!preg_match ("#http://#", $file)) // (O)
bin/php/php.ini 를 고치면 안되고
wamp 아이콘에서 php.ini 를 선택해서 열린 메모장에서 고쳐야 한다.
아래 등을 고칠 때 쓴다
short_open_tag = On
asp_tags = On