ITEM: TIMESTEP within
.
.
.
ITEM: ATOMS id type vx vy vz
Formal content
ITEM: TIMESTEP within
.
.
.
ITEM: ATOMS id type vx vy vz
Formal content
ITEM: TIMESTEP within
.
.
.
ITEM: ATOMS id type vx vy vz
CodePudding user response:
/root @ localhost ~ # cat aITEM: TIMESTEP within
.
.
.
ITEM: ATOMS id type vx vy vz
Formal content
ITEM: TIMESTEP within
.
.
.
ITEM: ATOMS id type vx vy vz
Formal content
ITEM: TIMESTEP within
.
.
.
ITEM: ATOMS id type vx vy vz
/root @ localhost ~ # sed '/TEM: TIMESTEP within/,/ITEM: ATOMS id type vx vy vz/d' a
Formal content
Formal content
CodePudding user response:
If want to direct execution, use sed - I went, the match between the two lines of content, including two lines all deleted, the rest of the stillCodePudding user response:
Startlen=` cat/etc/passwd | grep -n 'root: x:' | - d: the cut - f1 `
Endlen=` cat/etc/passwd | grep -n 'SSHD: x:' | - d: the cut - f1 `
Z with sed to remove between the start and end finally, specific command forgot, just learning