Ċ½ilvinas Ragauskas Ċ½ilvinas Ragauskas - 6 months ago 49
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?


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.