LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vi find (https://www.linuxquestions.org/questions/linux-newbie-8/vi-find-218175/)

blackzone 08-16-2004 04:51 AM

vi find
 
usually when searching we just use "/search_string"

but if I want to find a "\n" string, can't seemed to do so.

"/\n" will search for any place which have an "enter key"



anyway to find a string which compose of "\n"?

Marlboro 08-16-2004 05:17 AM

havent u tried with grep??
i dont understand what you want to do

hw-tph 08-16-2004 05:19 AM

The \<n\> search string (add a slash in front to actually use the command) is what is generated when I try to search for \n in a file. You know you can search for occurances of the word under the cursor just by typing an asterisk ( * ) in command mode, right?


Håkan

stickman 08-16-2004 09:11 AM

Try something like:
/\\n

This also works with other characters that have special meanings in vi (like ^ and $).


All times are GMT -5. The time now is 04:51 PM.