tianyun 8 months ago
parent
commit
e57e5889b9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      sh_config.sh

+ 6 - 0
sh_config.sh

@@ -390,3 +390,9 @@ function docker_compose_down() {
 	fi
 	fi
 	docker-compose -f "$1" down
 	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]'"