The x and y followed by the no of points as a group (e.g 2 points in first 2 rows become group 0, 2 points in 2nd row as group 1, 3 points in 3rd row so group name 3.....etc).
I could successfully put x y and z values but while looping thru np values I am stuck.
any idea?
Last edited by Franklin52; 09-13-2010 at 03:23 AM..
Reason: Please use code tags!
Hi,
How to format something like this:
John Roberts 324-141-984 Acct
Jack Williams 159-555-555 Acct
William Jackson 949-911-888 Acct
Mark J Walton 145-852-252 Acct
Fred P Milton 483-244-390 Acct
Bill P J Miller 404-050-223 Acct
into... (12 Replies)
Hi all,
I have a problem to format data from different database queries into one look. The input data are as follows, every line has the same number of values but a different number of characters:
adata, bdata, cdata, ddata
fffdata, gdata, hdata, idata
jdata, kdata, ... (6 Replies)
I have a very easy one for you this morning :)
A file containing this type of formated data:
500190 488.356
500193 546.7
566486 466.75
506654 288
However, it should be formated like this:
500190 488.356
500193 546.700
566486 466.750
506654 288.000
I know that this can be... (3 Replies)
I have a file which looks like this:
/* ----------------- EDW$MOC139_R_NNA_BR_SUM_FACT2 ----------------- */
insert_job: EDW$MOC139_R_NNA_BR_SUM_FACT2 job_type: c
command: /home/btchproc/load_process/batch_files/batch_nna_brn_split_sum_fact2.sh m
machine: edwprod02.dsm.pwj.com
#owner:... (29 Replies)
I have a file : e.g.
Charles Dixon Age 23 Hometown Darlington Postcode DL1 2DC
Fred Bixton Age 34 Hometown Leeds Postcode LS1 5XS
Jim Davis Age 48 Hometown Cardiff CF2 8YY
Is it possible to format this file into uniform columns using, say, the spaces as... (11 Replies)
Hi all,
i have written this script:
awk -F';' '
BEGIN {
printf "\n"
printf "\n"
printf "\n"
printf "----------------------------------------------\n"
print " For test "
printf "----------------------------------------------\n"
test_200 = 0
test_300 = 0
test_500 = 0
test_1000 = 0... (11 Replies)
My program output text file data in columns format. My problem is the column headers do not align with the data and if filesystem and Mounted On columns pathname are too long the text will not wrap.
Is there any function in Unix that I can use in my code that will align the data for each... (11 Replies)
Discussion started by: dellanicholson
11 Replies
LEARN ABOUT OSF1
setgroups
setgroups(2) System Calls Manual setgroups(2)NAME
setgroups - Sets the group access list
SYNOPSIS
#include <unistd.h>
#include <sys/types.h> int setgroups (
int gidsetsize,
gid_t grouplist[] );
PARAMETERS
Indicates the number of entries in the array pointed to by the grouplist parameter. Must not be more than NGROUPS_MAX, as defined in the
limits.h header file. Points to the array that contains the group access list of the current user process. Element grouplist[0] becomes
the new effective group ID.
DESCRIPTION
The setgroups() function sets the group access list of the current user process according to the array pointed to by the grouplist parame-
ter. This function fails unless the invoking process has superuser privilege.
NOTES
Trial use
RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. If the setgroups() function fails, a value of -1 is returned and errno is set
to indicate the error.
ERRORS
If the setgroups() function fails, errno may be set to one of the following values: The caller does not have the appropriate system privi-
lege. The value of the gidsetsize parameter is greater than NGROUPS_MAX or an entry in the grouplist parameter is not a valid group ID.
The grouplist parameter points outside of the allocated address space of the process.
RELATED INFORMATION
Functions: getgroups(2), initgroups(3) delim off
setgroups(2)