Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Windows
- bash
- Windows 10
- 줄바꿈 문자
- resource
- Quartz
- grep
- find
- ssh
- context
- web.xml
- IntelliJ
- profile
- GIT
- 네트워크
- netsh
- maVen
- lsof
- port
- tomcat
- Source
- VirtualBox
- xargs
- Mac
- 단축키
- JavaScript
- Eclipse
- vscode
- import
- plugin
Archives
- Today
- Total
develog
[bash] debugging script 본문
bash 실행하는 명령어를 콘솔에 출력하기
# 아래 명령 이후에 실행되는 스크립트는 콘솔에 출력된다
set -x
# 아래 명령 이후에 실행되는 스크립트는 콘솔에 출력되지 않는다
set +x
https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html
Debugging Bash scripts
willy:~/scripts> bash -x script1.sh + clear + echo 'The script starts now.' The script starts now. + echo 'Hi, willy!' Hi, willy! + echo + echo 'I will now fetch you a list of connected users:' I will now fetch you a list of connected users: + echo + w 4:5
tldp.org
Comments