FG
💻 Software

Grep command, to remove lines containing a specified word

Fresh6 days ago
Mar 15, 202649637 views
Confidence Score0%
0%

Problem

I want to use grep in the following way: I want the grep command to remove the lines which contain the words "END" and "EXPDTA", but all i get in the output, is a copy of the original file. The command works fine when I try to search and remove with a single word, but not with two words.

Error Output

grep -v "END","EXPDTA" 1bmz_model1.pdb > 1bmz_model.pdb

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Grep command, to remove lines containing a specified word

Low Risk

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment