ls | nano - open the editor in Ubuntu but close the editor and save a file to
-.save in CentOS?
How can I get nano in CentOS to remain open when reading stdin?
migrated from serverfault.com Oct 8 '12 at 5:52
This question came from our site for professional system and network administrators.
The feature wasn't added until version 2.2
and CentOS6 uses nano-2.0.9-7 (http://mirror.centos.org/centos/6/os/x86_64/Packages/)
If you decided you want the latest version, you can download from the upstream site (http://www.nano-editor.org/download.php) and then follow the Fedora guide to build your own RPM. (http://fedoraproject.org/wiki/How_to_create_an_RPM_package)
I think that this is text editor "feature" and nano doesn't have that.
you can use 2 steps:
There are 2 other editors which can use stdin for data input