Skip to content

Instantly share code, notes, and snippets.

@camsaul
Created February 25, 2015 00:57
Show Gist options
  • Save camsaul/3b3fdb4ae72bf71db9ff to your computer and use it in GitHub Desktop.
Save camsaul/3b3fdb4ae72bf71db9ff to your computer and use it in GitHub Desktop.
Filtered Docker Logs
docker attach expa_data | perl -ne 'if (!m/^\s*$/ && !m/stdout/) { s/^\[[^\]]+\]\s*(.*$)/$1/m; print; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment