[lammps-users] Fix print output

Dear all, I used the ‘fix print’ command to output two columns of data. The output format is as below, but I just wanna to keep the numerical rows, i.e., deleting the rows that ‘# Fix print output for fix 3’.
How can I realize it in lammps or which linux command I could use. Thanks in advance.

Fix print output for fix 3

0 0

Fix print output for fix 3

0.2 -2142.808325

Fix print output for fix 3

0.4 -3243.377876

Fix print output for fix 3

0.6 -4266.192794

Fix print output for fix 3

0.8 -5187.273558

Try the following linux command on your shell:

sed “/^#/d” your_file > newfile

L. Wan

2009/4/26 Jarvis Chong <[email protected]…24…>