Skip to content

Instantly share code, notes, and snippets.

@pastewka
Created July 16, 2017 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pastewka/fd3800ca15ba6f349c03b57a9db25503 to your computer and use it in GitHub Desktop.
Save pastewka/fd3800ca15ba6f349c03b57a9db25503 to your computer and use it in GitHub Desktop.
Extract "thermo" output section from a LAMMPS log file
#! /bin/sh
cat log.lammps | sed -n "/Step/,/Loop time/p" | head -n-1 > thermo.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment