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?
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