What does the command 'more +/<pattern> filename' do?

The command more +/<pattern> filename is used to open a file in the more pager and start displaying the content from the first occurrence of the specified pattern. Here's a breakdown of the command:

  • more: This is the command that allows you to view the content of a file one screen at a time.
  • +/: This indicates that you want to start searching for the specified pattern from the beginning of the file.
  • <pattern>: This is the text or pattern you are searching for within the file.
  • filename: This is the name of the file you want to open.

When you run this command, the file will open at the first occurrence of the specified pattern, allowing you to view the content starting from that point.

0 Comments

no data
Be the first to share your comment!