how to grab some information from log file to make a new file

grep -A5001 Step log.lammps > log.txt

Arun