https://serverfault.com/questions/469247/how-do-i-sleep-for-a-millisecond-in-bash-or-ksh

 

How do I sleep for a millisecond in bash or ksh

sleep is a very popular command and we can start sleep from 1 second: # wait one second please sleep 1 but what the alternative if I need to wait only 0.1 second or between 0.1 to 1 second ? re...

serverfault.com

 

  • 1/2 of a second
    • sleep 0.5
  • 1/1000 of a second
    • sleep 0.01
  • so for a millisecond you would want
    • sleep 0.001

 

 

'IT' 카테고리의 다른 글

vscode 내 git user 변경  (0) 2024.07.31
Project IDX 웹 IDE  (0) 2024.07.31
MacOS python  (0) 2024.06.30
HAOS 세팅 Home Assistant 세팅  (0) 2024.06.20
구글 크롬캐스트 리모컨 버튼 매핑, 변경  (0) 2024.05.13

Bash Shell 날짜 출력

 

shell관련 set -e, set -x

set -e : 구문 검사 후 실패할 경우 스크립트 종료

set -x : 모든 명령을 화면에 출력(Dos로 보면 @echo on)

 

http://julio.meroh.net/2010/01/set-e-and-set-x.html

 

set -e and set -x - Julio Merino

set -x: If you are writing simple scripts that are meant to, well, script the execution of a few tasks (as opposed of being full-flown programs written in shell), set this flag to trace the execution of all commands. This will make the interpreter print ea

julio.meroh.net

http://julio.meroh.net/2018/03/shell-readability-strict-mode.html

 

Shell readability: strict mode - Julio Merino

Use the Unofficial Bash Strict Mode (Unless You Looove Debugging): While writing this article, I came across this one. At first sight I thought: “hey, this covers exactly what I wanted to describe so no need for me to post!”. But I changed my mind. First,

julio.meroh.net

 

bash macOS cmd powerShell 등 대중적으로 많이 쓰는 스크립트나 커맨드에 대한 정보를 제공 한다.


https://ss64.com/


간결하면서도 유용하다


+ Recent posts