차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| dmesg_시간_출력 [2017/09/21 05:12] – 만듦 koov | dmesg_시간_출력 [2017/09/25 08:07] (현재) – [dmesg 시간 출력] admin | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== dmesg 시간 출력 ====== | ====== dmesg 시간 출력 ====== | ||
| + | --- // | ||
| ===== CentOS / RHEL 6 이하버전 ===== | ===== CentOS / RHEL 6 이하버전 ===== | ||
| 줄 6: | 줄 7: | ||
| <WRAP round box 60%> | <WRAP round box 60%> | ||
| + | < | ||
| printk.time= | printk.time= | ||
| Format: < | Format: < | ||
| + | </ | ||
| </ | </ | ||
| 줄 37: | 줄 40: | ||
| #!/bin/bash | #!/bin/bash | ||
| # Translate dmesg timestamps to human readable format | # Translate dmesg timestamps to human readable format | ||
| + | # koovis@gmail.com | ||
| IFS='' | IFS='' | ||
| 줄 47: | 줄 51: | ||
| # run only if timestamps are enabled | # run only if timestamps are enabled | ||
| if [ " | if [ " | ||
| - | # dmesg | sed " | ||
| - | # printf "[%s] %s\n" " | ||
| - | # done | ||
| dmesg | while read line ; do | dmesg | while read line ; do | ||
| if [ ${line:0:1} != ' | if [ ${line:0:1} != ' | ||
| 줄 64: | 줄 65: | ||
| </ | </ | ||
| + | |||
| + | ===== 참조링크 ===== | ||
| + | * https:// | ||