Skip to content
Advertisement

prompt and read a value as input for shell script

I am trying to create a shell script where it should prompt and read the values as input and then update the same shell script with that value in a specific line and column.

Or if i can use another shell script to get the values and update original file.

i wanted to read and update below parameters values as input

JavaScript

Full script

JavaScript

My intension is not to edit the file and input values, instead read it as prompt and update the file in background.

Advertisement

Answer

Thanks Team. I did another method for achieving this using AWS secret manager. The code can read the data from secret manager. So our engineer can update the same in secret manager as a key value pair. Thank you all for the suggestion and help. I will further look into the option suggested to improve the code.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement