Hi everyone,
i am trying to make a bash shell script that can add a name value pair to a text file, for example TEST=true. I am trying to make it so if the user tries to add a name that already exists for example TEST=false it does not let them do it. Can anyone tell me how to use the expr command to extract any text before the '=' character????? any help would be greatly appreciated
thanks