From 916d1175b3ede048ebd3d38e6c91f23cfc00a408 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Sun, 21 Jul 2024 02:21:55 +0200 Subject: [PATCH] Linux-ScriptExamples: added case examples to VarModufiers.sh --- Linux/Script-examples/VarModifiers.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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"