File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -48,3 +48,41 @@ h3. 내장 명령
4848* exec
4949** 새로운 프로세스를 생성하지 않고 명령을 실행, 파일디스크립터를 리다이렉트
5050** . 명령은 실행을 마칠때 제어를 본래 스크립트로 돌려주지만 exec는 그렇지 않다.
51+ * trap
52+ ** 신호잡기
53+ * kill
54+ ** 프로세스 중단
55+ ** INT를 무시하도록 작성된 프로그램은 ctrl+z를 눌러도 소용없다. KILL 신호는 감지하거나 무시하는것이 불가능하다.
56+
57+ h3. 표현식
58+ h5. 수식연산
59+ * let ".."
60+ * let count=count+1 value=value*10+b
61+ * ((..))
62+ * ((count=count+1, value=value*10+b))
63+
64+ h5. 논리연산(조건식)
65+ * [[ ]]
66+ * || &&
67+ * 문자열 비교
68+ ** [[ artist = a* ]]
69+ ** [[ abc = a?? ]]
70+ * 문자열 패턴매치
71+ * # 최소한 매치되는 접두어를 제거
72+ * ## 최대한 ..
73+ * % 최소한 매치되는 점미어를 제거
74+ * %% 최대한 ..
75+
76+
77+ h5. 연산자
78+ * &&와 || 연산자는 short-circuiting 연산자라도 한다.
79+ ** mkdir bkup && cp -r src bkuop
80+ ** mkdir bkup || echo "mkdir of bkup failed" >> /tmp/log
81+ * 3항 연산자
82+ ** expr ? expr2 : expr3
83+
84+
85+
86+
87+
88+
You can’t perform that action at this time.
0 commit comments