08-25-2008
Timestamp & date
Hi,
I have list of files as below, with prefix named as date & time. Anyone how to transform each file as below to yyyy-mm-dd hh:mm:ss
Quote:
-rw-r----- 1 ccbop ssd 132283 Aug 22 03:00 080822_030001_BATCH.inp
-rw-r----- 1 ccbop ssd 9182 Aug 22 03:30 080822_033002_BATCH.inp
-rw-r----- 1 ccbop ssd 7016 Aug 22 04:00 080822_040001_BATCH.inp
-rw-r----- 1 ccbop ssd 4489 Aug 22 04:30 080822_043002_BATCH.inp
-rw-r----- 1 ccbop ssd 1962 Aug 22 05:00 080822_050001_BATCH.inp
-rw-r----- 1 ccbop ssd 4128 Aug 22 05:30 080822_053001_BATCH.inp
-rw-r----- 1 ccbop ssd 9182 Aug 22 06:00 080822_060001_BATCH.inp
-rw-r----- 1 ccbop ssd 377326 Aug 22 06:30 080822_063001_BATCH.inp
-rw-r----- 1 ccbop ssd 450977 Aug 22 07:00 080822_070001_BATCH.inp
Regards,
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Could someone tell me how to get the date/time (to the second) a file was last modified? I need to know if a file was modified in the last 30 seconds from the system date. I'm on AIX/unix 4.3 (3 Replies)
Discussion started by: alex31
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
i have a time stamp. from that i am trying to awk to get the year, month and date.
TIME=20060614092446
DESIRED OUTPUT: 20060614
i am doing the following;
TIME=20060614092446
$ TimeStarted=`expr match '$TIME' '.*\(......\)'`
echo $TimeStarted
i am not getting... (2 Replies)
Discussion started by: pavan_test
2 Replies
3. UNIX for Dummies Questions & Answers
Hello all
This is a sample vmstat output ...
$ vmstat 2 2
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr hx hx hx hx in sy cs us sy id
1 0 0 23105784 7810488 323 767 1742 5 5 0 0 0 0 0 0 683 780 457 43 ... (9 Replies)
Discussion started by: luft
9 Replies
4. Shell Programming and Scripting
How can I list the files in a directory and just show the file size, date stamp, timestamp and file name..
I've been trying to ls -lrt the directory to a file and then use the cut command but I'm not having any luck with getting the proper results.. I thought i could use the -f switch and count... (4 Replies)
Discussion started by: Jazmania
4 Replies
5. Shell Programming and Scripting
Hi,
I have a file file1 having data as below
20110501,070742, ,012345678909,09999999999,68.5,
20110501,070236, ,089375855455,09376383333,374.3,
20110501,070525, ,090345895555,08444233444,206.2,
20110501,230051, ,000934744433,07624262223,480.1,
First field is date(YYYYMMDD) and second... (5 Replies)
Discussion started by: vsachan
5 Replies
6. Shell Programming and Scripting
Hi,
In a field, I should receive the date with time stamp in a particular field. But sometimes the vendor sends just the date or the timestamp or correctl the date×tamp. I have to figure out the the data is a date or time stamp or date×tamp.
If it is date then append "<space>00:00:00"... (1 Reply)
Discussion started by: machomaddy
1 Replies
7. Shell Programming and Scripting
Hi All,
Please read the below data carefully.
I need an unix command for converting unix timestamp to Epoch timestamp.
I need to daily convert this today's unix(UTC) time to epoch time, so i am thinking to make a shellscript for this.
Please help me for this by providing... (3 Replies)
Discussion started by: aish11
3 Replies
8. Shell Programming and Scripting
Currently I am redirecting STDERR and STDOUT to a log file by doing the following
{
My KSH script contents
} 2>&1 | $DEBUGLOG
Problem is the STDERR & STDOUT do not have any date/time associated.
I want this to be something that i can embed into a script opposed to an argument I use... (4 Replies)
Discussion started by: nitrobass24
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am running nohup cp & in a shell script.
How do I get a timestamp so I can get a timing of how long the copy took?
Roughly, the script does something like below:
date
nohup cp -rp /files/source /files/target &
date
I am mainly wanting to know how long it took for the... (9 Replies)
Discussion started by: newbie_01
9 Replies
10. Shell Programming and Scripting
Hello,
I have files that with a naming convention as shown below. Some of the files have dates in the file name and some of them don't have dates in the file name.
imap-hp-import-20150917.txt
imap-dell-gec-import-20150901.txt
imap-cvs-import-20150915.txt
imap-gec-import.txt... (8 Replies)
Discussion started by: Saanvi1
8 Replies
LEARN ABOUT DEBIAN
giigeteventmask
giiSetEventMask(3) GGI giiSetEventMask(3)
NAME
giiSetEventMask, giiGetEventMask, giiAddEventMask, giiRemoveEventMask - Set the types of events queued
SYNOPSIS
#include <ggi/gii.h>
int giiSetEventMask(gii_input_t inp, gii_event_mask evm);
gii_event_mask giiGetEventMask(gii_input_t inp);
int giiAddEventMask(gii_input_t inp, gii_event_mask evm);
int giiRemoveEventMask(gii_input_t inp, gii_event_mask evm);
DESCRIPTION
Calling giiSetEventMask indicates to LibGII that only the types of events that match the specified event mask will be read by the applica-
tion in subsequent giiEventPoll(3) or giiEventRead(3) calls. LibGII can then save time and memory by skipping checks and not allocating
queues for events that will never be read out. The default mask allows all events.
giiAddEventMask and giiRemoveEventMask are macros that set or delete individual bits in the bitmask.
Note: giiSetEventMask is an advisory call. For correct operation, the application still needs to pass a restrictive event mask to
the event reading functions.
RETURN VALUE
giiSetEventMask, giiAddEventMask and giiRemoveEventMask return 0 on success or an gii-error(3) code otherwise.
giiGetEventMask returns the currently set mask.
SEE ALSO
gii_event_mask(3)
libgii-1.0.x 2006-12-30 giiSetEventMask(3)