| ... | ... |
@@ -130,6 +130,7 @@ lsof -i4 -n |
| 130 | 130 |
|
| 131 | 131 |
# Colors in scripts |
| 132 | 132 |
use with **echo -e** |
| 133 |
+ |
|
| 133 | 134 |
```bash |
| 134 | 135 |
GREEN="\\033[1;32m" |
| 135 | 136 |
RED="\\033[1;31m" |
| ... | ... |
@@ -147,6 +148,7 @@ NORMAL="\\033[0;39m" |
| 147 | 148 |
sed -i "s/key=.*/gain=NEW/" infile |
| 148 | 149 |
``` |
| 149 | 150 |
In a section |
| 151 |
+ |
|
| 150 | 152 |
``` |
| 151 | 153 |
sed -i '/^\[section\]/{$!{N;s/gain=.*/key=NewMULTILINE/;ty;P;P;:y}}' infile
|
| 152 | 154 |
``` |