... | ... |
@@ -144,6 +144,16 @@ NORMAL="\\033[0;39m" |
144 | 144 |
``` |
145 | 145 |
|
146 | 146 |
# Replace a key=value in a file |
147 |
+With **infile** being: |
|
148 |
+ |
|
149 |
+```ini |
|
150 |
+[section] |
|
151 |
+ key=value |
|
152 |
+ key2=value2 |
|
153 |
+``` |
|
154 |
+ |
|
155 |
+ |
|
156 |
+ |
|
147 | 157 |
``` |
148 | 158 |
sed -i "s/key=.*/gain=NEW/" infile |
149 | 159 |
``` |