|
메뉴릿
카테고리
최근 등록된 덧글
감사합니다. shell scrip..
by Mr.Carbin at 07/17 아.. 정말 감사드립니다.. by 송진영 at 03/15 조금 거리가 있는 주제.. by sio4 at 03/11 안녕하세요? 덧글 달아.. by 송진영 at 02/14 펄이나 파이썬은 진입장.. by kirrie at 02/13 최근 등록된 트랙백
Allergy to codeine s..
by Source of codeine. Online phentermine. by Lowest price for phen.. Tramadol ultram medic.. by Ultram addiction. Ephedra weight loss .. by Ephedra. Canada overnight am.. by Ambien manufacturer. Calico film music des.. by Zoo sex. Lexapro-ultracet-int.. by Extracting acetanin.. Ambien. by Ambien verses temac.. Scat eating shit sex. by Shit sex photos per.. Ordering adderall. by Adderall. 포토로그
이전블로그
이글루링크
이글루 파인더
|
2008년 02월 12일
이 게시판은 제가 리눅스 프로그래밍 책으로 공부를 하면서 내용을 정리하는 게시판입니다.
조건1 - if ------------------------------------------------------------------------------------------------------------- #!/bin/sh if [ -f /bin/bash ] then echo "/bin/bash is file" elif [ -d /bin/bash ]; then echo "/bin/bash is directory" else echo "/bin/bash is not file" fi exit 0 ------------------------------------------------------------------------------------------------------------- 문자열 비교 string1 = string2 | 같으면 true string1 != string2 | 다르면 true -n string | 문자열이 NULL이 아니면 true -z string | 문자열이 NULL이면 true 산술 비교 exp1 -eq exp2 | 두 표현식이 같으면 true exp1 -ne exp2 | 두 표현식이 다르면 true exp1 -gt exp2 | exp1이 exp2보다 크면 true exp1 -ge exp2 | exp1이 exp2보다 크거나 같으면 true exp1 -lt exp2 | exp1이 exp2보다 작으면 true exp1 -le exp2 | exp1이 exp2보다 작거나 같으면 true ! exp | exp의 역 파일 조건 -d file | file이 디렉토리이면 true -e file | file이 존재하면 true -f file | file이 일반 파일이면 true -g file | set-group-id가 file에 설정되어 있으면 true -r file | 파일을 읽을 수 있으면 true -s file | 파일크기가 0이 아니면 true -u file | set-user-id가 설정되어 있으면 true -w file | 파일에 쓰기가 가능하면 true -x file | 파일이 실행 가능하면 true - for #!/bin/bash for hello in world google gnu do echo $hello done exit 0 - $(명령) #!/bin/bash for file in $(ls f*.sh); do echo $file done exit 0 - while 다음에..
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
| |||||