Skip to content

Instantly share code, notes, and snippets.

@minhd
Created July 16, 2018 05:12
Show Gist options
  • Save minhd/d3ec909b009228e93219ba5663e931c2 to your computer and use it in GitHub Desktop.
Save minhd/d3ec909b009228e93219ba5663e931c2 to your computer and use it in GitHub Desktop.
Bash writes command to logs with date #bash
command.sh >> log_$(date +%Y-%m-%d_%H:%M).log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment