System/OS
2003.04.23 10:36
[linux] 셀 스크립트 if, for, case in..
조회 수 13676 댓글 0
스크립트 인수1 인수2 인수3
#!/bin/sh
echo $1; echo $2; echo $3
if then, elif, else 제어문
echo -n 'enter a number : '
read number
if [ $number -lt 0 ]
then
echo smaller than zero
elif [ $number -eq 0 ]
then
echo zero
else
echo bigger than zero
fi
case in 제어문
for color in blue red green
do
echo one color is $color
done
case in 제어문
case 변수 in
"first")
first 경우의 실행 코드
;;
"second")
second 경우의 실행 코드
;;
"third")
third 경우의 실행 코드
;;
*)
Default 경우
;;
esac
-
라우팅 경로 결정 영향 요소 ㅋㅋ
-
OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속
-
네트워크별 MTU(최대 전송 단위)
-
[router] 라우팅 프로토콜 BGP (간단한 세팅)
-
[router] 시스코 라우터 명령어 모드..
-
[mysql] 시간 관련 SQL구문..
-
[linux] 데비안(debian.org) 리눅스 명령어 예제
-
[linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정
-
[web] 웹서비스 취약점 자료.. (논문첨부)
-
[linux] man 명령어 뽀개기..
-
[linux] root도 삭제하지 못하는 파일 속성
-
[linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ