Ċ½ilvinas Ragauskas Ċ½ilvinas Ragauskas - 1 year ago 69
Linux Question

Saving file using dialog utility

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

Maybe you could help me to save this edite file?

Answer Source

From the dialog manpage: "On exit, the contents of the edit window are written to dialog's output."

So you should redirect the output of your dialog command to a file and use it based on the return code.