grep -qxF

From wikieduonline
Jump to navigation Jump to search


grep -qxF 'your text "additional text"' yourfile.txt || echo 'your text "additional text"' >> yourfile.txt

Related

See also

Advertising: