grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit ac357035bdf91c5dad7dbdd019b62ae6aafc599f
parent f8d60138cf36763bdd04f02e54d9328dac8117fd
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 21 Mar 2019 10:16:19 +0000

convert lower to upper

Diffstat:
Mtechnology/linux/general/sed.md | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

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