1 2 3 4
#!/usr/bin/env sh echo '# Group x y z' sed '0,/^Atoms/d;/^Bonds/,$d;/^$/d' $@ | awk '{print $3, $4, $5, $6}'