http://mycroftproject.com/search-engines.html?name=it.nodong.net
'분류 전체보기'에 해당되는 글 666건
- 2014.01.17 한국정보통신산업노동조합 일터Q&A search plugin
- 2014.01.06 PHP : eregi -> preg_match
- 2014.01.02 printf,sprinf format
- 2013.12.18 sh: 파일 크기 역순 보기 du sort
- 2013.12.18 shell find function sgrep
- 2013.12.17 oracle table 주석 (comment) 보기
- 2013.12.16 tortoisegit git
- 2013.12.13 PHP: Function ereg() is deprecated
- 2013.12.12 csh round
- 2013.12.11 csh loop
eregi("AAA", "BBB")
-->
preg_match("#AAA#i", "BBB")
1. - : 왼쪽 정렬, 기본값은 오른쪽 정렬임
$ cat 1.c
int main()
{
char buf[] = "ABC";
char res[100];
sprintf(res, "%10s", buf);
printf("res:[%s]\n", res);
sprintf(res, "%-10s", buf);
printf("res:[%s]\n", res);
}
$cc 1.c
$a.out
res:[ ABC]
res:[ABC ]
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/