08-05-2009
Thanks for the explanation.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have some EDI data which 830, 862 and 997. Here is the sample data:
ISA~00~ ~00~ ~ZZ~F159B ~ZZ~U1CAD ~051215~184
3~U~00200~000011432~0~P~<
GS~FA~TC11A~U1CAD~051215~1843~000011432~X~002002
ST~997~0001
AK1~SH~1168
AK2~856~11680001
AK5~A... (2 Replies)
Discussion started by: isingh786
2 Replies
2. UNIX for Advanced & Expert Users
Hi,
Im having a hard time in creating a script with the following conditions below. I have a csv file generated which is updated every 5 mins and it contains a timestamp in it. for example:
time data
00:00 1
00:05 0
00:10 6
00:15 3
however, there is a time that... (4 Replies)
Discussion started by: mdap
4 Replies
3. UNIX for Dummies Questions & Answers
I have a couple of datetime fields in a file with contents like below:
ICPBR|6373056085|1|O||||JOHN|SMITH|||H200|706|445668|||123 SMITH ST|LAGRANGE|IL|66666 |||||||N|N|N|N|N|||345676|2009.02.20-13:09:04|257655957|2009.02.20-13:09:04||||N|||||F|||||||||||
I want to strip the time off the... (4 Replies)
Discussion started by: ChicagoBlues
4 Replies
4. Shell Programming and Scripting
Hi everyone,
I hope someone can help me:
i am trying to get some info from a csv file, after i awk the column i need , i made a selection and output it in a file.
now i need to get a list from this file, but i stuck with some fields.
basically i have a text file with next data:
3... (3 Replies)
Discussion started by: lostym
3 Replies
5. Shell Programming and Scripting
Hi,
i have csv input file looks like below
3rd field is date and time field i want to change it with user supplied date and time says
year=2011
month=09
day=05
hour=11
count=2
when count is say 10 then first ten records should pick and it should increment the... (2 Replies)
Discussion started by: raghavendra.nsn
2 Replies
6. Shell Programming and Scripting
Hi, I am newbie in shell script.
I need your help to solve my problem.
Firstly, I have 2 files of csv and i want to compare of the contents then the output will be written in a new csv file.
File1:
SourceFile,DateTimeOriginal
/home/intannf/foto/IMG_0713.JPG,2015:02:17 11:14:07... (8 Replies)
Discussion started by: refrain
8 Replies
7. Shell Programming and Scripting
CSV date sorted file has multiple entries for most dates. Need to eliminate all but the first and last entries of each date, being the start and end times for that day.
2009-11-20,23:57:46
2009-11-20,23:58:46
2009-11-20,23:59:46
2009-11-21,00:00:45
2009-11-21,00:01:46
2009-11-21,00:02:45... (2 Replies)
Discussion started by: mdennis6
2 Replies
8. Shell Programming and Scripting
Hi ,
I want to add a new column 'current_time stamp' in my existing csv file with current time stamp for all the records.I tried something this but this is printing 0 with date & time and printed date one line above header.Please help
awk -F "," 'BEGIN{ OFS="," } {$6=system("date... (5 Replies)
Discussion started by: netdbaind
5 Replies
LEARN ABOUT DEBIAN
explain_stime_or_die
explain_stime_or_die(3) Library Functions Manual explain_stime_or_die(3)
NAME
explain_stime_or_die - set system time and report errors
SYNOPSIS
#include <libexplain/stime.h>
void explain_stime_or_die(time_t *t);
int explain_stime_on_error(time_t *t);
DESCRIPTION
The explain_stime_or_die function is used to call the stime(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_stime(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_stime_on_error function is used to call the stime(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_stime(3) function, but still returns to the caller.
t The t, exactly as to be passed to the stime(2) system call.
RETURN VALUE
The explain_stime_or_die function only returns on success, see stime(2) for more information. On failure, prints an explanation and exits,
it does not return.
The explain_stime_on_error function always returns the value return by the wrapped stime(2) system call.
EXAMPLE
The explain_stime_or_die function is intended to be used in a fashion similar to the following example:
explain_stime_or_die(t);
SEE ALSO
stime(2)
set system time
explain_stime(3)
explain stime(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_stime_or_die(3)