| ▲ | btdmaster 7 hours ago | |
You can also press `s` to save data from a pipe to a file rather than manually copy pasting. | ||
| ▲ | osmsucks 2 hours ago | parent [-] | |
I came here to suggest the same! It's incredibly handy and I use it all the time at work: there's a process that runs for a very long time and I can't be sure ahead of time if the output it generates is going to be useful or not, but if it's useful I want to capture it. I usually just pipe it into `less` and then examine the contents once it's done running, and if needed I will use `s` to save it to a file. (I suppose I could `tee`, but then I would always dump to a file even if it ends up being useless output.) | ||