technology/linux/general/sed.md
... ...
@@ -9,3 +9,9 @@ add character
9 9
```
10 10
s/regex/&n/
11 11
```
12
+
13
+convert first word before equals symbol from lower to upper
14
+_this is used in config files such as ifcfg to convert all variable names_
15
+```
16
+:%s/^[[:alpha:]_]\{1,\}=/\U&/
17
+```