02-22-2020
Hi, What does this word mean (you used it many times):
What do you mean by this word, exactly?
Do you mean "columns" (in an ASCII table)?
Thanks.
This User Gave Thanks to Neo For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I am having the file which contains the following two columns.
518 _factorial
256 _main
73 _atol
52 ___do_global_ctors
170 ___main
52 ___do_g
How can calculate the percentage of each value in the first column ?
first need to get the sum of the first column and... (3 Replies)
Discussion started by: saleru_raja
3 Replies
2. Shell Programming and Scripting
Hi,
I have a file with the below like values with integers only in sorted order (May or may not be in sequence)
Eg: File1.txt
-----------
1
2
3
4
5
6
.
.
.
.
.
10000
My requirement here is to create a range of values out put to a temp k (4 Replies)
Discussion started by: shiva447
4 Replies
3. Shell Programming and Scripting
Should work in any shell, but requires GNU date, although GNU date seems only to be happy for input dates between 1902 and 2037, inclusive (49673 days).
Assume $a and $b hold two dates, e.g.
set a=2010-03-27
set b=2010-04-04
Marginally faster:
iterator: seq -f "$a +%1.0f days" 1 50000 |... (0 Replies)
Discussion started by: laddiebuck
0 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
I am totally new to Unix, I am trying to work out the percentage between two values in a ksh shell script and assign the result to a variable.
Value1=577
Values2=244
So the calculation would be as follows:
((Value1 - Value2) / Value1) * 100
How would I be able to achieve... (2 Replies)
Discussion started by: NextLevelAndi
2 Replies
5. Shell Programming and Scripting
We have a monitoring process for a load in unix box, during this process we are writing logs statements for each record, and during this process we are showing the counts per hour. Here is that how we are following
log files statements: (just two lines printed here), these statements logged at... (1 Reply)
Discussion started by: skkuchipudi
1 Replies
6. Shell Programming and Scripting
Hi, I am working with files containing 2 columns in which i need to come up with the frequency/count of values in col. 2 falling within specifics binned values of col. 1. the contents of a sample file is shown below:
15 12.5
15 11.2
16 0.2
16 1.4
17 1.6
18 4.5
17 5.6
12 8.6
11 7.2
9 ... (13 Replies)
Discussion started by: ida1215
13 Replies
7. Shell Programming and Scripting
I have a list of columns with values that I need to transform into a row containing the range of each column. For example:
"Column A"
1
2
3
4
10
12
14
15
16
17
18
"Column B"
1
4
5
6 (4 Replies)
Discussion started by: newbio
4 Replies
8. Shell Programming and Scripting
Hello,
I have compiled a script but I have stucked at one point.
Each line contains two pcs of % value and what I want to do is to delete any line if both % values are zero.
data:
expected output:
ow3 should be deleted as both percentage value in related line are equal to zero.
... (2 Replies)
Discussion started by: baris35
2 Replies
9. Shell Programming and Scripting
Gents,
It is possible to generate a range of values according to column 1 and count the total of rows in the range.
example
input
15.3
15.5
15.8
15.9
16.0
16.1
16.8
17.0
17.5
18.0
output desired
15.0 - 15.9 = 4 (10 Replies)
Discussion started by: jiam912
10 Replies
10. UNIX for Beginners Questions & Answers
I would like to create bins to get histogram with totals and percentage, e.g. starting from 0.
If possible to set the minimum and maximum value in the bins ( in my case value min=0 and max=20 )
Input file
8 5
10 1
11 4
12 4
12 4
13 5
16 7
18 9
16 9
17 7
18 5
19 5
20 1
21 7 (10 Replies)
Discussion started by: jiam912
10 Replies
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/db.docs
The default ASCII document database file.
/var/lib/htdig/db/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)