09-15-2007
how can i search word that is under the cursor in VI
Hello all
i know the standard way to search in Vi with "/" and "?" but is there any way to perform search
on word that is under the cursor ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello, i'm using the vi editor (not vim) and my main use in it is for C++ programming.
After working on Visual Studio 2005 the auto-complete looks like paradise now... so i'm trying to find a way to have auto-complete also in the vi.
i cant install vim and use the ctrl+P. i need to find a way... (1 Reply)
Discussion started by: Malbinir
1 Replies
2. Shell Programming and Scripting
Hi,
I have to search a word in a text file and then I have to delete lines above from the word searched . For eg suppose the file is like this:
Records
P1
10,23423432
,77:1
,234:2
P2
10,9089004
,77:1
,234:2
,87:123
,9898:2
P3
456456
P1
:123,456456546
P2
abc:324234 (2 Replies)
Discussion started by: vsachan
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, i am new to unix shell scripting and i need a script which would search for a particular word in all the files present in a directory. The output should have the word and file path name. For example: "word" "path name".
Thanks for the reply in adv,:) (3 Replies)
Discussion started by: virtual_45
3 Replies
4. Shell Programming and Scripting
I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word description excluding weird characters like $$#$#@$#@***$# and without html tags in the new file output.txt. Help me. Thanx in advance.
My final goal is to... (11 Replies)
Discussion started by: sachit adhikari
11 Replies
5. Shell Programming and Scripting
I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt. Help me. Thanx in advance. I have attached the input... (4 Replies)
Discussion started by: sachit adhikari
4 Replies
6. Shell Programming and Scripting
Hi,
I am trying to search for a word and print the next word. For example:
My text is "<TRANSFORMATION TYPE ="Lookup Procedure">"
I am searching for "TYPE" and trying to print ="Lookup Procedure"
I have written a code like following:
echo $line | nawk... (4 Replies)
Discussion started by: sampoorna
4 Replies
7. Shell Programming and Scripting
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
8. What is on Your Mind?
Today I changed the forum mysql database to permit 2 letter searches:
ft_min_word_len=2
I rebuilt the mysql search indexes as well.
Then, I added a "quick search bar" at the top of each page.
I have tested this and two letter searches are working; but it's not perfect,... (1 Reply)
Discussion started by: Neo
1 Replies
9. UNIX for Beginners Questions & Answers
I have a multicolumn text file with header in the first row like this
The headers are stored in an array called . which contains I want to search for each elements of this array from that multicolumn text file. And I am using this awk approach
for ii in ${hdr}
do
gawk -vcol="$ii" -F... (1 Reply)
Discussion started by: Atta
1 Replies
DING(1) Debian GNU/Linux DING(1)
NAME
ding - dictionary lookup program for Unix
SYNOPSIS
ding [options] [phrase]
DESCRIPTION
ding is a dictionary lookup program for X Windows/Unix. It comes with a German-English dictionary with about 270,000 entries.
It is based on Tk version >= 8.3 and uses the agrep(1) or egrep(1) tools for searching.
In addition to this ding can also search using ispell(1) and dict(1).
It has many configuration options, such as search preferences, interface language (English or German), colors. It has history and help
functions and comes with useful key and mouse bindings for quick and easy lookups.
If you enter some word or phrase as command line argument, ding will start up with a translation of this word/phrase.
OPTIONS
-x, --selection
Start searching for selected word (X selection).
-m, --mini
Start with minimal size (search form only).
-r, --remote
Start search in an already running program.
-R, --remote-new
Start search in an already running program or start a new program.
--noconf
Do not save preferences
-D #, --debug #
Start with debug output, # = number (1..15).
USAGE
It's very simple: Start ding (via KDE menu "Tools" or via command line), type in search word, press ENTER, read results. Search further by
double-clicking a word, or select a word in another window and drop it by clicking with mouse button 2 over the "ding window". For further
information consult the program help by pressing F1.
SEE ALSO
agrep(1), egrep(1), ispell(1), ding(1).
http://www.tu-chemnitz.de/~fri/ding/
/usr/share/doc/ding/html/index.html
AUTHOR
ding was written by Frank Richter <frank.richter@hrz.tu-chemnitz.de>.
This manual page was written by Roland Rosenfeld <roland@spinnaker.de>, for the Debian GNU/Linux system (but may be used by others).
Debian Project March 2011 DING(1)