PHP question...I posted this on the Web Development forum, but maybe this is a better place!
I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names.
So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person... (3 Replies)
Hi all,
I wanted to access two arrays (of same size) using one for loop.
Ex:
#!/bin/bash
declare -a num
declare -a words
num=(1 2 3 4 5 6 7)
words=(one two three four five six seven)
for num in ${num}
do
echo ":$num: :${words}:"
done
Required Output:
:1: :one: (11 Replies)
if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Hi
I have redc containing the values 3, 6, 2, 8, and 1.
I have work containing the values 8, 2, 11, 7, and 9.
Is there a way to find the sum of redc and work?
I need to compare the sum of those two arrays to something else, so is it okay to put that into my END?
TY! (4 Replies)
Hi,
Is there a concept of lables in vi editor. In mainframes ISPF editor there is a concept of labels where one can label a line say ".a" and after that wherever you are in the file, if one want to go back to that particular line where the label was set...he could do by "l .a"....Is there... (1 Reply)
Hi All,
need help with reading the array and sum of the array elements.
given an array of integers of size N . You need to print the sum of the elements in the array, keeping in mind that some of those integers may be quite large.
Input Format
The first line of the input consists of an... (1 Reply)
I need your help to discover missing elements for each box.
In theory each box should have 4 items: ITEM01, ITEM02, ITEM08, and ITEM10.
Some boxes either have a missing item (BOX02 ITEM08) or might have da duplicate item (BOX03 ITEM02) and missing another one (BOX03 ITEM01).
file01.txt
... (2 Replies)
Hi,
Sure it's an easy one, but it drives me insane.
input ("|" separated):
1|A,B,C,A
2|A,D,D
3|A,B,B
I would like to count the occurence of each capital letters in $2 across the entire file, knowing that duplicates in each record count as 1.
I am trying to get this output... (5 Replies)
So I need to Write an array processing program using a Linux shell programming language to perform the following.
Load array X of 20 numbers from an input file X.
Load array Y of 20 numbers from an input file Y.
Compute array Z by multiply Xi * Yi then compute the square-root of this... (2 Replies)
i'm new to awk, and i've been searching on the forum for sum of a column but all the scripts does sum a column of an entire file.
I've a file like this:
cat file.txt
1234 5678
5678 1234
I want to use awk to do sum of each column per line not entire file, compare the two then write the... (1 Reply)
Discussion started by: chofred
1 Replies
LEARN ABOUT REDHAT
overview.fmt
OVERVIEW.FMT(5) File Formats Manual OVERVIEW.FMT(5)NAME
overview.fmt - format of news overview database
DESCRIPTION
The file <pathetc in inn.conf>/overview.fmt specifies the organization of the news overview database. Blank lines and lines beginning with
a number sign (``#'') are ignored. The order of lines in this file is important; it determines the order in which the fields will appear
in the database.
Most lines will consist of an article header name, optionally followed by a colon. A trailing set of lines can have the word ``full''
appear after the colon; this indicates that the header should appear as well as its value.
If this file is changed, new overview records will be constructed with the modified format. If it is desired to update existing records,
it is necessary to rebuild the existing overview database using makehistory(8) after removing all existing overview files.
``Xref:full'' must be included, or innd(8) and other programs which utilize overview method cannot start.
The default file, show below, is compatible with Geoff Collyer's ``nov'' package:
Subject:
From:
Date:
Message-ID:
References:
Bytes:
Lines:
Xref:full
Usually the only modifications which should be made to the default file are additions of new fields to the end of the file; all such fields
should have ``full'' after the colon. The first eight fields should remain in the same order as above.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Intended to be compatible with the nov package written by Geoff Collyer
<geoff@world.std.com>. This is revision 1.6.6.3, dated 2002/01/05.
SEE ALSO inn.conf(5)OVERVIEW.FMT(5)