I have a lot of files, which contain lines such as
local1 = "AAA"
private = "Filename_With_Uppercase"
where I would like to change the right side of the equal side to only lower case. But only for lines that start with private.
If I do
gawk -F'=' '/^private/{gsub(/[-/]/, "_"); tolower($2)} 1' filename
then it doesn't change anything...
Question
Can anyone figure out why the right hand side of the equal side isn't converted to lower case?