What is `more +/pattern`?

more +/pattern is a command used with the more utility in Unix-like operating systems to display the contents of a file starting from the first occurrence of a specified pattern (string). This allows users to quickly navigate to a specific section of the file that matches the given pattern.

Usage:

The syntax is:

more +/pattern <filename>

Example:

If you have a file named log.txt and you want to start viewing it from the first occurrence of the word "warning", you would use:

more +/warning log.txt

This command will open log.txt and display the content starting from the line where "warning" first appears, allowing you to read from that point onward.

0 Comments

no data
Be the first to share your comment!