The best thing about using less for tailing files is that you can give a search pattern for highlighting interesting lines. I know you can use grep --colour to get the same effect, but that only shows you matching lines, whereas less will let you see the matching line in context.
yosemite $ which less
/usr/bin/less
yosemite $ less --version
less 418
Copyright (C) 1984-2007 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less
According to the less release notes it's only about one version behind (edit: one version behind the & that is). It's interesting that less 418 already changed the license to GPL3, so I assume that won't become more of an issue later.
2
u/anotherkeebler Mar 30 '15
The best thing about using
lessfor tailing files is that you can give a search pattern for highlighting interesting lines. I know you can usegrep --colourto get the same effect, but that only shows you matching lines, whereaslesswill let you see the matching line in context.