How to create CRUD Shell Script #Help?

my code is shell script to backing up my network devices.
this is my script

my code :

variabel description :

  • 'a' = Devices name
  • 'a1' = Ip Address
  • 'aU' = username
  • 'aPnoc' = password
  • 'port' = PORT Telnet

my problem : if i want to adding a new network devices, i must input manually.

please help me, how to create CRUD (Create, Read, Update, Delete).
so, i can adding a new devices without opening by notepad.

Thank you.
iam sorry for my bad english language

Welcome to the forum.

I have serious difficulties to understand what you're after, and I can't connect your request to what you posted. Except that you may want to supply the "new network devices" as a parameter to your script; then, assign the $1 parameter to the a1 variable. If this doesn't answer / solve your problem, become way more informative.

Please DON'T post a picture of your code, this makes it impossible to copy it for analysing etc.
And, the "shebang" #!/binbash NEEDS to be in the first line to be effective.

I can't even see the code, so I'm completely blind and unable to help.

Please paste it into the thread using CODE tags:

Thanks, in advance,
Robin