바뀜

이동: 둘러보기, 검색

Bash

1,024 바이트 추가됨, 2022년 2월 7일 (월) 14:18
script syntax
==script syntax==https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html
==Shell Syntax== == Shell Commands == === Reserved Words === === Simple Commands === === Pipelines === === List of Commands === === Compound Commands === ==== Looping Constructs ==== ==== Conditional Constructs =if==='''if'''<syntaxhighlight lang="bash">
if [ -z "$1" ] && [ -z "$2" ]
fi
</syntaxhighlight>연산자
<nowiki>==== 연산자 =====</nowiki>
!=
True if the length of <var>string</var> is non-zero.
 
==== Grouping Commands ====
 
=== Coprocesses ===
 
=== GNU Parallel ===
 
== Shell Functions ==
 
== Shell Parameters ==
 
== Shell Expansions ==
 
=== Brace Expansion ===
 
=== Tilde Expansion ===
 
=== Shell Parameter Expansion ===
 
=== 명령 대체(Command Substitution) ===
다음과 같이 사용한다.<syntaxhighlight lang="bash">
$(command)
</syntaxhighlight>or<syntaxhighlight lang="bash">
`command`
</syntaxhighlight>변수에 넣어 출력할 수 있다.<syntaxhighlight lang="bash">
OUTPUT=$(ls -1)
echo "${OUTPUT}"
</syntaxhighlight>
 
=== Arithmetic Expansion ===
 
=== Process Substitution ===
 
=== Word Splitting ===
 
=== Filename Expansion ===
 
=== Quote Removal ===
 
== Redirections ==
 
== Executing Commands ==
 
== Shell Scripts ==
 
 
 
=== stdout없애기 ===
\": "출력해야 하는 경우
 
==단축키==
편집
2,431

둘러보기 메뉴