Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash print lines that dont have a word

# Basic syntax:
grep -v word input_file
# This prints all lines of the input_file that don't contain "word"

# Note, even lines that contain the substring "word" are removed
 
PREVIOUS NEXT
Tagged: #bash #print #lines #dont #word
ADD COMMENT
Topic
Name
9+7 =