Hi,
I want to write a small script to search for a text in file and when its found I want to print the next line.
I try to write that script but I could not manage it, I just write the following script the find the exact line but I want the next line.
$ sed -n -e '/Form not/p' test.txt... (2 Replies)
i have this text file name test.txt which contain :
aaaaa bbb
iiiiiiiiiiiii ccf
ddaaa ddd
and i need a script that can print out the line numbers using a while loop..
so when the script is run..it will have this:
1
2
3
any ideas? :) thanks guys (4 Replies)
I have a file (OMlog0) that is quite large, I need to find the line "Automatic Recharge Audit Process Finished" and output that line and the time stamp that occurs two lines previous. The line that I was using is "sed -n '/Automatic Recharge Audit Process Finished/,/No errors/p' /sn/log/OM* >... (8 Replies)
Hello All,
I have a following task that I need to accomplish through a script or program and I am looking for some help as I have exhausted my ideas.
1. given: a text file with thousands of lines
2. find: pattern A in file and get line number ( grep -n works)
3. find: the first occurence of... (14 Replies)
Hello,
Can anybody help me to correct my sed syntax to find the string and print previous two lines and current line and next one line.
i am using string as "testing"
netstat -v | sed -n -e '/test/{x;2!p;g;$!N;p;D;}' -e h
i am able to get the previous line current line next line but... (1 Reply)
Hi All,
I am sitting on HPUX. I want to change the exit into #exit, which appears into 3red line of code in shell scripting, wondering how shell script to be called up to perform action. I have following code in all files. Now, I need to find the text exit and replace into #exit.
#!/sbin/sh... (10 Replies)
the text file like below's
input:
aaaaaaaaafdsfsda
sdfsadfasdfasfds
sdfadsf
asdfadf
asdfa
adfsfsafas
sdfsfafads
asdfasdfsa
I want to print out consecutive two line
output:
aaaaaaaaafdsfsda (1 Reply)
Unix box server version
***********
>uname -r
B.11.00
>echo $SHELL
/usr/bin/ksh
--> in this server, I have the path like /IMbuild/dev/im0serv1
---> in that directory I have the folders startup(.jsp files nearly 100 jsp's ) and scripts(contains .js files nearly 100 files) ... (9 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
xfce4-dict
XFCE4-DICT(1)XFCE4-DICT(1)NAME
xfce4-dict -- a client program to query different dictionaries
SYNOPSIS
xfce4-dict [option] [text ...]
DESCRIPTION
xfce4-dict allows you to search different kinds of dictionary services for words or phrases and shows you the result. Currently you can
query a "Dict" server(RFC 2229), any online dictionary service by opening a web browser or search for words using a spell check program
like aspell, ispell or enchant.
Homepage: http://goodies.xfce.org/projects/applications/xfce4-dict
OPTIONS
If called without any arguments, the xfce4-dict main window is shown. Any passed text argument(s) are used as search text.
-d, --dict
Search the given text using a Dict server(RFC 2229).
-w, --web Search the given text using a web-based search engine.
-t, --text-field
Grab the focus on the text field in the panel (has no effect if panel plugin is not loaded).
-s, --spell
Check the given text with a spellchecker.
-i, --ignore-plugin
Start stand-alone application even if the panel plugin is loaded.
-c, --clipboard
Grabs the PRIMARY selection content (X selection clipboard), uses it as search text and performs a search. This is useful when
you want to create keyboard shortcuts for this command. The search method can be specified with the -d, -w and -s options, if
not specified the default search method is used. If the PRIMARY clipboard doesn't contain any text, the normal clipboard is
used.
-v, --verbose
Be verbose (print useful status messages).
-V, --version
Show version information.
-?, --help
Show help information and exit.
xfce4-dict supports all generic GTK options, a list is available on the help screen.
BUGS
There is a limitation of max. 12 characters in passing a search term to xfce4-dict when the panel plugin is loaded. That is, if you pass a
search term as command line argument(s) to xfce4-dict which is longer than 12 characters, it is truncated. To be exact, the limit is 12
bytes so if the search term contains any non-ASCII characters it might be even less than 12 characters. To work around this limitation,
you can add the command line '-i' so that xfce4-dict will start a single stand-alone application. Then all passed text is used as search
term.
AUTHOR
This manual page was written by Enrico Troeger. Permission is granted to copy, distribute and/or modify this document under the terms of
the GNU General Public License, Version 2, or (at your option) any later version.
xfce4-dict 0.6.0 December 31, 2009 XFCE4-DICT(1)