i am still new to terminal and i can not find way to save a file after editing with dialog utility.
#dialog --no-lines --title 'Name' --backtitle 'program' --editbox /etc/passwd 30 70
dialog manpage: "On exit, the contents of the edit window are written to dialog's
So you should redirect the output of your
dialog command to a file and use it based on the return code.