Difference between revisions of "Add line"
Jump to navigation
Jump to search
(Created page with " grep -qxF 'your text "additional text"' yourfile.txt || echo 'your text "additional text"' >> yourfile.txt == Related == * append {{line}}") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{add line}} | |
+ | |||
+ | |||
+ | LINE='include "/configs/projectname.conf"' | ||
+ | FILE='lighttpd.conf' | ||
+ | grep -qF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE" | ||
== Related == | == Related == | ||
* [[append]] | * [[append]] | ||
+ | * [[sed -i]] | ||
+ | * [[Ansible: lineinfile]] | ||
+ | * [[rpl]] | ||
+ | * [[Concatenate lines]] | ||
+ | == See also == | ||
+ | * {{line}} | ||
− | + | [[Category:IT]] |
Latest revision as of 10:07, 7 February 2024
Advertising: