script -fq >(awk '{print strftime("%F %T ") $0}{fflush()}'>> PATH) # Linux
script -Fq >(awk '{print strftime("%F %T ") $0}{fflush()}'>> PATH) # Mac
Last active
January 30, 2023 01:41
-
-
Save blacknon/f19d1e94b5f89f3e1fef520d3ecc7b59 to your computer and use it in GitHub Desktop.
Add time stamp to terminal log of script command
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment