Вопрос

I was wondering if there was a way to run something like this ?

tail program -flag1 -flag2 agrument 

I know this isn't correct but I essentially want to do what this would intuitively do if it worked. The idea is to display the "tail" of the output of the program on the fly, without going through a the file system.

Это было полезно?

Решение 2

Try

 program -flag1 -flag2 argument | tail

Другие советы

Use a pipe:

program -flag1 -flag2 argument | tail

Any time you want to feed the output of one program to the input of another program, you use a pipeline:

program1 | program2
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top