|
From: | Find Marbles |
Subject: | Re: Choosing directory to save file to, inside nano |
Date: | Mon, 5 Jun 2023 16:54:12 +0200 |
Hello. Don't think so, as nano's default concept of where to save files is based on either its working directory, or the path of the file. For stdin there is of course no path to start from, and working dir is just where it is invoked. I believe if you wanted to get closer, albeit outside nano, you could pipe the output to:
(cd somedirectory && nano -)
Nano would then start from there for saving the output to a relative path.On June 5, 2023 4:37:48 AM EDT, Find Marbles <locatemarbles@gmail.com> wrote:Hello,is there a way to choose/change the directory to which I can save a file to, inside nano, without having to manually type it out?The reason I'm asking is because I have a script which pipes the text output to nano -After doing some editing of the text, I want to give the file a new name and save it to a directory of my choosing.Thank you in advance
[Prev in Thread] | Current Thread | [Next in Thread] |