This wont give the expected output:
Your code spits as below:
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
1 Mean manager 414d51204c5
.
.
.
.
I have a flat file and need to count no of records in the file less the header and the trailer record.
I would appreciate any and all asistance
Thanks
Hadi Lalani (2 Replies)
I've been working with an awk script and I'm wondeing id it's possible to count records in a file which DO NOT contain, in this instance fields 12 and 13.
With the one script I am wanting to display the count for the records WITH fields 12 and 13 and a seperate count of records WITHOUT fields... (2 Replies)
Hi every one;
I have a 31500-line text file upon which two following tasks are to be performed:
1: Rearranging the file
2: Taking the average of each column (considering number of zeros) and output the result into a new file
This is the code I've come up with:
awk '(NR%3150<3150)... (0 Replies)
Please find the below program. It contains the purpose of the program itself.
/* Program : Write a program to count the number of words in a given text file */
/* Date : 12-June-2010 */
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
int main( int argc, char *argv )
{... (6 Replies)
Hi everyone.
I am a newbie to Linux stuff. I have this kind of problem which couldn't solve alone. I have a text file with records separated by empty lines like this:
ID: 20
Name: X
Age: 19
ID: 21
Name: Z
ID: 22
Email: xxx@yahoo.com
Name: Y
Age: 19
I want to grep records that... (4 Replies)
HI,
i have a file like this
t.txt
f1|_f2|_
f1|_f2|_
f1|_f2|_
as if col delimiter is |_ and row delimiter |_\n
trying to count number of records using awk
$ awk 'BEGIN{FS="|_" ; RS="~~\n"} {n++}END{print n} ' t.txt
7
wondering how can i count this to 3 ?
thx (9 Replies)
I have 2 files
"File 1" is delimited by ";" and "File 2" is delimited by "|".
File 1 below (3 record shown):
Doc1;03/01/2012;New York;6 Main Street;Mr. Smith 1;Mr. Jones
Doc2;03/01/2012;Syracuse;876 Broadway;John Davis;Barbara Lull
Doc3;03/01/2012;Buffalo;779 Old Windy Road;Charles... (2 Replies)
Hi Unix team,
I have a file with 30 columns with tab delimited. I need to count the records based on column 18 & 21 data.
So I cut the data from the file using
awk -F"\t" '{print $18,$21}' foo.txt
Following is the output:
USED SEDAN
USED SUV
NEW SUV
USED Truck
USED Truck
USED... (6 Replies)
Hi I am new to shell programming in unix
Please if I can provide help.
I have a file structure of a header record and "N" detail records.
The header record will be the total number of detail records
I need to split the file in 2:
One for the header
Another for all detail records
Could... (1 Reply)
Discussion started by: jamcogar
1 Replies
LEARN ABOUT HPUX
xmobjectatpoint
XmObjectAtPoint(library call) XmObjectAtPoint(library call)
NAME
XmObjectAtPoint -- A toolkit function that determines which child intersects or comes closest to a specified point
SYNOPSIS
#include <Xm/Xm.h>
Widget XmObjectAtPoint(
Widget widget,
Position x,
Position y);
DESCRIPTION
XmObjectAtPoint searches the child list of the specified manager widget and returns the child most closely associated with the specified
x,y coordinate pair.
For the typical Motif manager widget, XmObjectAtPoint uses the following rules to determine the returned object:
o If one child intersects x,y, XmObjectAtPoint returns the widget ID of that child.
o If more than one child intersects x,y, XmObjectAtPoint returns the widget ID of the visible child.
o If no child intersects x,y, XmObjectAtPoint returns NULL.
The preceding rules are only general. In fact, each manager widget is free to define "most closely associated" as it desires. For example,
if no child intersects x,y, a manager might return the child closest to x,y.
widget Specifies a manager widget.
x Specifies the x-coordinate about which you are seeking child information. The x-coordinate must be specified in pixels, relative
to the left side of manager.
y Specifies the y-coordinate about which you are seeking child information. The y-coordinate must be specified in pixels, relative
to the top side of manager.
RETURN
Returns the child of manager most closely associated with x,y. If none of its children are sufficiently associated with x,y, returns NULL.
RELATED XmManager(3).
XmObjectAtPoint(library call)