Wednesday, July 25, 2007

Linux.shell.command: two usages of 'less'

As you know, 'less' is a very useful tool to view text files. Today I realize the two more functions new for me:

  1. You could use less to open more than one file in the buffer, just by ":p" or ":n" etc. to switch them
  2. If you have more than 1 key words to search, just use the way /wordone|wordtwo|wordmore and then enter, thus those 3 key words will be highlighted in the text body.

No comments:

Locations of visitors to this page