09-25-2007
Quote:
Originally Posted by
geeko
Hi folks,
have a look into the attachment, i am not familiar with unix, can you please help me in this regard.
thanks in advance,
regards,
Geeko
Suggest that you copy and paste content from the word document here (unless it's too big) or attach it as a pure textfile. People might hesitate to open a word-file they don't know anything about.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
2. Shell Programming and Scripting
Could someone tell me how to replace a word at a particular line by a single SED or AWK command?
e.g. I have a file with the contents below:
$ cat file1
111 AAA
333 CCC
222 BBB
444 CCC
I want to replace the word "CCC" with a blank to get the desired output below:
111 AAA
333 CCC... (3 Replies)
Discussion started by: stevefox
3 Replies
3. Shell Programming and Scripting
How do I replace only if the keyword is at the begining of a line?
Code:
--
a = “This is a print statement”
print a
--
What if I want to replace print by #print only in the second line i.e only if the line starts with that keyword.
Please help me out. I'm new to SED.
-----Post... (5 Replies)
Discussion started by: alexzubin
5 Replies
4. Shell Programming and Scripting
I've been looking on the internet, and haven't found anything simple enough to use in my code. All I want to do is count how many times "-" occurs in a string of characters (as a package name). It seems it should be very simple, and shouldn't require more than one line to accomplish.
And this is... (2 Replies)
Discussion started by: Shingoshi
2 Replies
5. Shell Programming and Scripting
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Discussion started by: venu
3 Replies
6. Shell Programming and Scripting
Hi All,
If I have a line as following:
( MA "vertical" )
How can I convert it to as below:
( BC "horizontal" )
Thanks,
--Michael (6 Replies)
Discussion started by: mxn731
6 Replies
7. Shell Programming and Scripting
Hi,
I have been trying to replace the key word
"SQL> spool off "
with
"/
show errors"
with out double quotes in all the files in a directory.
above show erros should be displayed next line
Could you please help me how to do that.
I have tried something like this... (3 Replies)
Discussion started by: pointers
3 Replies
8. Shell Programming and Scripting
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Discussion started by: Kingcobra
6 Replies
9. Shell Programming and Scripting
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
10. UNIX for Beginners Questions & Answers
I have query to replace the first word in line using below code but its replace the middle word too
sed -i 's/load /# LOAD/' /tmp/check.sql
Query 1 :
UPDATE accheadcon_data_last_upload SET last_upload_date = '2017-07-23'
Replace to
UPDATE accheadcon_data_last_up# LOAD SET... (1 Reply)
Discussion started by: kaushik02018
1 Replies
LEARN ABOUT DEBIAN
htdump
htdump(1) General Commands Manual htdump(1)
NAME
htdump - write out an ASCII-text version of the document database
SYNOPSIS
htdump [options]
DESCRIPTION
Htdump writes out an ASCII-text version of the document database in the same form as the -t option of htdig.
OPTIONS
-a Use alternate work files. Tells htdump to append .work to database files, allowing it to operate on a second set of databases.
-c configfile
Use the specified configfile instead of the default.
-v Verbose mode. This doesn't have much effect.
File Formats
Document Database
Each line in the file starts with the document id followed by a list of fieldname : value separated by tabs. The fields always
appear in the order listed below:
u URL
t Title
a State (0 = normal, 1 = not found, 2 = not indexed, 3 = obsolete)
m Last modification time as reported by the server
s Size in bytes
H Excerpt
h Meta description
l Time of last retrieval
L Count of the links in the document (outgoing links)
b Count of the links to the document (incoming links or backlinks)
c HopCount of this document
g Signature of the document used for duplicate-detection
e E-mail address to use for a notification message from htnotify
n Date to send out a notification e-mail message
S Subject for a notification e-mail message
d The text of links pointing to this document. (e.g. <a href="docURL">description</a>)
A Anchors in the document (i.e. <A NAME=...)
Word Database
While htdump and htload don't deal with the word database directly, it's worth mentioning it here because you need to deal with it
when copying the ASCII databases from one system to another. The initial word database produced by htdig is already in ASCII format,
and a binary version of it is produced by htmerge, for use by htsearch. So, when you copy over the ASCII version of the document
database produced by htdump, you need to copy over the wordlist as well, then run htload to make the binary document database on the
target system, followed by running htmerge to make the word index.
Each line in the word list file starts with the word
followed by a list of fieldname : value separated by tabs. The fields always appear in the order listed below, with the last two
being optional:
i Document ID
l Location of word in document (1 to 1000)
w Weight of word based on scoring factors
c Count of word's appearances in document, if more than 1
a Anchor number if word occurred after a named anchor
FILES
/etc/htdig/htdig.conf
The default configuration file.
/var/lib/htdig/db.docs
The default ASCII document database file.
/var/lib/htdig/db.wordlist
The default ASCII word database file.
SEE ALSO
Please refer to the HTML pages (in the htdig-doc package) /usr/share/doc/htdig-doc/html/index.html and the manual pages htdig(1) , and
htload(1) for a detailed description of ht://Dig and its commands.
AUTHOR
This manual page was written by Stijn de Bekker, based on the HTML documentation of ht://Dig.
15 October 2001 htdump(1)