LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2004, 05:51 AM   #1
blackzone
Member
 
Registered: Jul 2004
Posts: 256

Rep: Reputation: 30
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"?
 
Old 08-16-2004, 06:17 AM   #2
Marlboro
LQ Newbie
 
Registered: Aug 2004
Location: Colombian mountains
Distribution: FC2
Posts: 11

Rep: Reputation: 0
havent u tried with grep??
i dont understand what you want to do
 
Old 08-16-2004, 06:19 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 08-16-2004, 10:11 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Try something like:
/\\n

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 04:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 09:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 08:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 03:56 AM


All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration