I followed https://unix.stackexchange.com/a/43460/674: after
$ locate -i linux | less
g|$emacs - in
less, but nothing is opened in Emacs, and the terminals says:
emacs: standard input is not a tty
What does that mean?
g|$emacs -nw - doesn't work either. Btw, I want to use emacs in terminal not its GUI.
what shall I do then?