01-13-2016
Hi,
Yes,I have posted a different file here.But. the purpose is same. I am not much familiar with UNIX,so, I don't know where to proceed from.
Could you please help me with this its really urgent.
If there is a confusion between the two data's consider the second one.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi I have fakebook.csv as following:
F1(current date) F2(popularity) F3(name of book) F4(release date of book)
2006-06-21,6860,"Harry Potter",2006-12-31
2006-06-22,,"Harry Potter",2006-12-31
2006-06-23,7120,"Harry Potter",2006-12-31
2006-06-24,,"Harry Potter",2006-12-31... (0 Replies)
Discussion started by: onthetopo
0 Replies
2. Programming
I have a file which is
2
3
4
5
6
6
so i am writing program in C to calculate mean..
#include<stdio.h>
#include<string.h>
#include <math.h>
double CALL mean(int n , double x)
main (int argc, char **argv)
{
char Buf,SEQ;
int i;
double result = 0;
FILE *fp; (3 Replies)
Discussion started by: cdfd123
3 Replies
3. Shell Programming and Scripting
I want to calculate the average line by line of some files with several lines on them, the files are identical, just want to average the 3rd columns of those files.:wall:
Example file:
File 1
001 0.046 0.667267
001 0.047 0.672028
001 0.048 0.656025
001 0.049 ... (2 Replies)
Discussion started by: AriasFco
2 Replies
4. Shell Programming and Scripting
I just want to know, how do we calculate the months in shell scripting.
If i give the input as 20-01-2011, the output should be 20-02-2011, 20-03-2011 or 20-04-2011........
How do i get this ?
Cheers. (6 Replies)
Discussion started by: sachin24
6 Replies
5. Shell Programming and Scripting
Hi All
I have this csv file and I need to calculate the average of FPS.
FPS:27.7420, Interval:1314184238772
FPS:25.9798, Interval:1314184242646
FPS:27.4772, Interval:1314184246311
FPS:26.1623, Interval:1314184250159
FPS:26.4515, Interval:1314184253972
FPS:31.5896, Interval:1314184257163... (24 Replies)
Discussion started by: sayachop
24 Replies
6. Shell Programming and Scripting
Hello friends,
I have a file as follows:
"empty line"
content1
content2
content3
content1
content2
content3
content1
content2
content3
It starts with an empty line,
how can i get a csv like this: (12 Replies)
Discussion started by: kraterions
12 Replies
7. Shell Programming and Scripting
Hello dears,
I have a log file with records like below and want to get a average of one column based on the search of one specific keyword.
2015-02-07 08:15:28 10.102.51.100 10.112.55.101 "kevin.c" POST ... (2 Replies)
Discussion started by: Newman
2 Replies
8. Shell Programming and Scripting
hi all i have a reporting work and i want it to be automated using shell scripting kindly let me know how can i make that possibe .
eg data are :... (2 Replies)
Discussion started by: Avinash shaw
2 Replies
9. Shell Programming and Scripting
My old school way is a one liner. And will search for average from SAR, to get the data receive rate. But, I dont think it is practical or accurate,. Because it calculates to off peak hours. I am planning to change it. My cron runs every 30 mins. When my cron runs, and my time is 14:47pm,, it will... (1 Reply)
Discussion started by: invinzin21
1 Replies
10. UNIX for Beginners Questions & Answers
I have two CSV files file1, file2 as below
File 1:
Key, Value1, Value2, Value3, Value4,......value
A,50,100,50,40,....,100
File 2:
Key, value1,Value2,Value3,Value 4 so on...
A,50,80,45,50.....
Now, I want to check if key from file 1 is present in file 2 or not if present I want to... (9 Replies)
Discussion started by: hustler
9 Replies
t_look(3) Library Functions Manual t_look(3)
NAME
t_look() - look at the current event on a transport endpoint
SYNOPSIS
DESCRIPTION
The function returns the current event on the transport endpoint specified by fd. This function enables a transport provider to notify a
transport user of an asynchronous event when the user is calling functions in synchronous mode. Certain events require immediate notifica-
tion of the user and are indicated by a specific error, [TLOOK], on the current or next function to be executed.
This function also enables a transport user to poll a transport endpoint periodically for asynchronous events.
Valid States
All - apart from
XTI Internet Protocol-specific Information
As soon as a segment with the TCP urgent pointer set enters the TCP receive buffer, the event is indicated. remains set until all data up
to the byte pointed to by the TCP urgent pointer has been received. If the urgent pointer is updated, and the user has not yet received
the byte previously pointed to by the urgent pointer, the update is transparent to the user.
Fork Safety
is not fork-safe.
RETURN VALUE
Upon success, returns a value that indicates which of the following allowable events has occurred, or returns zero if no event exists. One
of the following events is returned:
T_LISTEN connection indication received.
T_CONNECT connect confirmation received.
T_DATA normal data received.
T_ERROR (TLI ONLY) fatal error occurred.
T_EXDATA expedited data received.
T_DISCONNECT disconnect received.
T_UDERR datagram error indication.
T_ORDREL orderly release indication.
T_GODATA (XTI only) flow control restrictions on normal data flow have been lifted. Normal data may be sent again.
T_GOEXDATA (XTI only) flow control restrictions on expedited data flow have been lifted. Expedited data may be sent again.
ERRORS
On failure, is set to one of the following:
[TBADF] The specified identifier does not refer to a transport endpoint.
[TSYSERR] A system error has occurred during execution of this function.
[TPROTO] (XTI only) This error indicates that a communication problem has been detected between XTI and the transport provider for
which there is no suitable XTI (
SEE ALSO
t_open(3), t_snd(3), t_sndudata(3), thread_safety(5).
STANDARDS CONFORMANCE
t_look(3)