tianyun 8 月之前
父節點
當前提交
e57e5889b9
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      sh_config.sh

+ 6 - 0
sh_config.sh

@@ -390,3 +390,9 @@ function docker_compose_down() {
 	fi
 	docker-compose -f "$1" down
 }
+
+# Ubuntu/Debian: sudo apt-get install moreutils
+# CentOS/RHEL: sudo yum install moreutils
+# macOS: brew install moreutils
+# 用法  tail -f abc.log | pt
+alias pt="ts '[%Y-%m-%d %H:%M:%S]'"