diff --git a/Linux/Script-examples/VarModifiers.sh b/Linux/Script-examples/VarModifiers.sh index 2fba4a1..acd5844 100644 --- a/Linux/Script-examples/VarModifiers.sh +++ b/Linux/Script-examples/VarModifiers.sh @@ -1,6 +1,11 @@ option="${option// /}" #Removes Spaces +option="${option//'"'}" #Removes " +option="${option//:}" #Removes : option="${option/:/ }" #First : to Space option="${option//:/ }" #All : to Space -option="${option//:}" #Removes : -option="${option,,}" #Removes LowerCase -option="${option//'"'}" #Removes " \ No newline at end of file +option="${option,}" #First to LowerCase +option="${option,,}" #All : to LowerCase +option="${option^}" #First : to UpperCase" +option="${option^^}" #All : to UpperCase" +option="${option~}" #First : reverse case" +option="${option~~}" #All : reverse cases"