I have written a program that outputs long text to the terminal. I am looking for certain words in the text to see if I have done it right. But simply reading the text is impossible. Is there any capabilities or command that can actually enable me to lookup a word in the terminal (like Ctrl + F)? Thanks
|
|
It's Shift + Ctrl + F. You might want to change the Scrollback value to Unlimited to not lose any lines:
|
|||||
|
|
Another option:
Now, you can press the arrow keys to go up,down, left and right (usually you only use the first two). You can also type You can also use Home and End keys to go to the start and end of the output. Pressing More info:
|
|||
|
|
|
You could pipe the output to a file with
I usually prefer this approach as you don't need to worry about the terminal buffer size, and you can easily keep output from multiple runs of program. |
||||
|
|
This eliminates @Alb's^ intermediary step of redirecting to a file. |
|||
|
|

