![xargs nano를 사용하면 SIGHUP 또는 SIGTERM이 수신되고 xargs less는 수신됩니다.](https://linux55.com/image/202460/xargs%20nano%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%A9%B4%20SIGHUP%20%EB%98%90%EB%8A%94%20SIGTERM%EC%9D%B4%20%EC%88%98%EC%8B%A0%EB%90%98%EA%B3%A0%20xargs%20less%EB%8A%94%20%EC%88%98%EC%8B%A0%EB%90%A9%EB%8B%88%EB%8B%A4..png)
상상하다:
$ cat t0.txt
t1.txt
$ cat t1.txt
xxx
$ sed -n 1p t0.txt | xargs less
# OK
$ sed -n 1p t0.txt | xargs nano
Received SIGHUP or SIGTERM
dvl-linux64 $ nano --version
GNU nano, version 2.5.3
파일을 여는 방법 nano
? 그렇지 않다면 xargs
어쩌죠?
UPD. SVK 소개:
$ sed -n 1p t0.txt | xargs less
# OK
$ sed -n 1p t0.txt | xargs nano
Too many errors from stdin
$ sed -n 1p t0.txt | nano
Too many errors from stdin
Buffer written to nano.save
$ nano --version
GNU nano, version 4.9