문제

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