I am using max() function and want to know 2 values associated with the max. This is my query
BE
=====
Tnum BE_id BET
---------------------
1 1 45
1 2 3
1 3 6
1 4 54
1 5 1
I want to get Max(BE_id) and BET and Tnum...
In the following script, I would like to see the time in the new file file1. But I am seeing ${timekey). Please let me know what to do.
d=`/usr/local/bin/cprevdate +2 | cut -f1 -d" "`
timekey=`ltime $d 000000`
sed 's/^/${timekey},/' file > file1
thanks in advance
Can anyone tell me how to get the unix long time for the date 01/01/2099. when i am trying to use mktime from a c program, I am getting -1.
this is the chunk of code i am using
struct tm *tm;
time_t l;
int i;
long ptm;
l = time(&i);
tm = localtime(&i);
tm->tm_year=2099-1900...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.