grep -qxF

From wikieduonline
Revision as of 09:51, 19 April 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search


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

Related

ack, ag, grep, egrep, fgrep, agrep, ngrep, pgrep, awk, sed, strings, tr, tail, mtail, git grep, wc, uniq, LogQL, findstr (Windows), rg, git-grep, cut

Advertising: