tianyun hace 8 meses
padre
commit
e57e5889b9
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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]'"