Is there a way to stop a program after it outputs n lines?
Ive tried the following, but it still waits for the 开发者_如何转开发program to finish executing lnx>someprogram | sed -n '1,10p'
Maybe a pipe may not be the correct way to go about this. Any feedback would be appreciated!
Regards, Puji
精彩评论