Ala*_*ano 4 command-line console pipe
当我说类似的话
curl http://example.com/123
Run Code Online (Sandbox Code Playgroud)
我只想阅读 n 首行,我该怎么做?我知道那是这样的:
curl http://example.com/123 | ???
Run Code Online (Sandbox Code Playgroud)
Sad*_*adi 10
您要查找的命令是head -n DwhereD可以是任何整数。例子:
curl http://example.com/123 | head -n 3
Run Code Online (Sandbox Code Playgroud)