The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 seraching a man page
Author: Dan Langille 
Date:   18-03-02 20:01

If you are reading a man page, you can use a vi-like command for searching.

To look for 'display', press /, then enter the string you want to search for, then hit ENTER. To search for the next occurance, press / and hit ENTER.

Reply To This Message
 
 Re: searching (inside) a man page
Author: parv 
Date:   19-03-02 07:26

depending upon your $PAGER, you can just use "n" to see the next search pattern. to search backwords, say from current screen to previous, use "?" instead of "/". if you press "n" (after "?"), search is still done backwords.

"n" & "?" work at least w/ less as $PAGER. less is part of freebsd, i think at least from 4.5-stable.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org