Re:Ask HN: What CLI tools do you wish existed?
by zaptheimpaler on Friday December 19, 2014 @01:12AM
(#8771297)
This might already exist, but while tailing logs today I wished for a tool that would let me view a log file as its changing - like "tail -f" so new lines appear at the bottom, but with the added ability to scroll up, jump to any line, search etc like a text editor.
[ Parent
| on HN ]
Re:Ask HN: What CLI tools do you wish existed?
by bracewel on Friday December 19, 2014 @04:35AM
(#8771599)
Hm, this is a interesting idea, I'm not sure I know of a tool for doing this (beyond using tail -f .. | grep .. as a primitive search)
Re:Ask HN: What CLI tools do you wish existed?
by skuhn on Friday December 19, 2014 @05:20AM
(#8771689)
less can do this:
less +F /var/log/blah.log
then ctrl-c to switch into regular less mode (for scrolling back or searching), and 'F' to go back into follow mode to watch changes roll in.You don't have to start less in follow mode either, 'F' will work regardless.