"리눅스 bash 명령어 한줄로 합치기 ;"의 두 판 사이의 차이

26번째 줄: 26번째 줄:
*[[리눅스 bash 명령어 줄바꿈]]
*[[리눅스 bash 명령어 줄바꿈]]
*[[윈도우 CMD 명령어 한줄로 합치기]]
*[[윈도우 CMD 명령어 한줄로 합치기]]
*[[세미콜론]]


[[분류: bash]]
[[분류: bash]]

2015년 1월 19일 (월) 16:40 판

리눅스 bash 명령어 한줄로 합치기
리눅스 한줄에 여러 명령어 실행

1 방법 예시

명령어
echo hello; echo world;
echo hello && echo world;
실행예시
[root@jmnote ~]# echo hello; echo world;
hello
world
[root@jmnote ~]# echo hello && echo world;
hello
world

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}