● sh 구문에 pause 명령추가 및 sleep 3초 추가 명령
이전
다음
링크
본문
● sh 구문에 pause 명령추가 및 sleep 3초 추가 명령
#코드정보
#!/bin/bash
# init
function pause(){
read -p "$*"
}
pause 'Press [Enter] key to continue...'
#========================================
# rest of the script
#=======================================
echo pasue 'infomation' function
pause 'Press [Enter] key to continue...'
echo ================================ pause
echo sleep 3 function
sleep 3
echo 3 sec
echo ================================ sleep 3
echo pause 와sleep 3// sh commader example..
echo ======================================
#코드정보
#!/bin/bash
# init
function pause(){
read -p "$*"
}
pause 'Press [Enter] key to continue...'
#========================================
# rest of the script
#=======================================
echo pasue 'infomation' function
pause 'Press [Enter] key to continue...'
echo ================================ pause
echo sleep 3 function
sleep 3
echo 3 sec
echo ================================ sleep 3
echo pause 와sleep 3// sh commader example..
echo ======================================
#실행결과
Press [Enter] key to continue...
================================ pause
sleep 3 function
3 sec
================================ sleep 3
pause 와sleep 3// sh commader example..
======================================
Press [Enter] key to continue...
pasue infomation function
Press [Enter] key to continue...
================================ pause
sleep 3 function
3 sec
================================ sleep 3
pause 와sleep 3// sh commader example..
======================================
Press [Enter] key to continue...
pasue infomation function
☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠
관련자료
-
링크
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.