Sponsored Content
Full Discussion: timestamps
Top Forums Shell Programming and Scripting timestamps Post 302200807 by siba.s.nayak on Friday 30th of May 2008 05:12:35 AM
Old 05-30-2008
str1="14/4/2008 8:42:03 πμ|10800|306973223399|4917622951117|1||1259|1|126|492|433||19774859454$"
echo "$str1"awk 'BEGIN {FS="|"}{print $1}'
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix timestamps

Can someone help me with a Unix or perl script to convert the unix timestamps to human readable format? Any help will be highly appreciated... (3 Replies)
Discussion started by: hamsasal
3 Replies

2. Solaris

Difference between two timestamps

I'm writting a script to find the difference between two timestamp. One field i get on delivery time of the file like 07:17 AM and other is my SLA time 06:30 AM I need to find the difference between these two time (time exceeded to meet SLA). Need some suggestions. (8 Replies)
Discussion started by: raman1605
8 Replies

3. Shell Programming and Scripting

Arithmetic on timestamps

Hi Friends, please advise on shell script to add two time stamps for example : a=12:32 b=12:00 c=a+b=00:32 please help me to find shell script to add to two time stamps, as i need to convert time from EST to GMT or SST to prepare status of jobs in unix and to specify estimated time to... (3 Replies)
Discussion started by: balireddy_77
3 Replies

4. Shell Programming and Scripting

Difference between two timestamps Contd..

There was this thread earlier with the same name and the solution provided was excellent. Here is the solution to find diffrenc between two timestamp $ cat timestamp #! /usr/bin/ksh echo enter first time stamp read TIME1 echo enter second time stamp read TIME2 H1=${TIME1%:+()}... (3 Replies)
Discussion started by: Shellslave
3 Replies

5. Shell Programming and Scripting

Compare Timestamps

Hi! Long time reader first time registered user and poster. I've picked up some times and tricks and I'm at a dead end... I've parsed a log file for duplicates and printed only the two fields I need (duplicate entry and time stamp). My question is, with this output, how would I script... (2 Replies)
Discussion started by: rexpokinghorn
2 Replies

6. UNIX for Dummies Questions & Answers

Compare 2 timestamps

Hi, i have current timestamp, lets say "12:02:45" in an variable (var1) and another timestamp "08:30:00" fetched from table in another variable2 (var2). How do i compare 2 timestamps in unix shell scripting. if var 1 > var 2 then echo message. Thanks in advance. (3 Replies)
Discussion started by: prasannarajesh
3 Replies

7. Shell Programming and Scripting

Sorting the files on their timestamps

Hi, The file names are like XXXX_20111101.gz for 01 November 2011, etc. There might be several files for 01 November 2011 and I can find them using find DIR -name *_20111101.gz -exec ls -lt {} \; But I want to sort the listing returned by the above command on the timestamps of the files... (6 Replies)
Discussion started by: sagarparadkar
6 Replies

8. Shell Programming and Scripting

Help with touch and timestamps

Hello fellow Unix geeks, I have been given a very urgent assignment in my office on writing a particular Shell script but I'm very much new to it.I would appreciate any help from you on solving this problem--which might seem very trivial to you. The Unix flavour is a Sun Solaris one..(not... (6 Replies)
Discussion started by: Digjoy83
6 Replies

9. Shell Programming and Scripting

Comparing two timestamps

Hi all!!, I'm using Ksh and working on Linux. I want to compare two timestamps, timestamp1 and timestamp2. Until, timestamp1 is lesser than timestamp2, i want to do something, lets say print something. The code i have written is: a=`date +%H:%M:%S` b=`date +%H:%M:%S -d" 1... (1 Reply)
Discussion started by: Jayaraman
1 Replies

10. Shell Programming and Scripting

Write with a look for timestamps

hello i'm using SOX to generate a spectrogram from a wave file with the command : #sox file.wav -n spectrogram is there a way to create a spectrogram using the same command but reading file timestamps instead of the namefile.wav , since name is changing every 4 hours? (it's saved with... (2 Replies)
Discussion started by: Board27
2 Replies
NFTIMESTAMP(8)						      System Manager's Manual						    NFTIMESTAMP(8)

NAME
nftimestamp - Set Notesfile sequencer timestamps SYNOPSIS
nftimestamp [ -v ] [ -t ] notesfile [ notesfile ] DESCRIPTION
The Notesfile system uses timestamps to determine which articles in a notesfile have been read by an individual user. The timestamps are compared with arrival times of the individual articles to determine if a user has seen that article. Nftimestamp provides a simple mecha- nism for updating many timestamps. In the usual case, nftimestamp is invoked with a list of notesfiles. The invoking user's sequencer timestamps for the specified notesfiles are set to the current time. The -t option allows the user to specify some different time. Notesfiles are specified in the same manner as on the notes command line. Include notesfiles by using their name; the shell wildcard characters (?*[]) are correctly expanded. Exclude notesfiles be prefixing their name with an exclamation mark: !notesfile. The -f option reads a list of notesfiles to be included and excluded from the specifid file. The Notesfile Administrator can use the -u option to set the sequencer for systems and other users. The seqtoascii and seqtobinary utilities provide the same function as this program. Using those programs, the user must change each time- stamp manually and then restore the sequencer file. Nftimestamp provides a simpler interface. FILES
/etc/passwd for the users name /etc/group for the users group /usr/spool/notes the default notesfile data base SEE ALSO
notes(1), seqtoascii(1), seqtobinary(1), The Notesfile Reference Manual AUTHORS
Ray Essick (uiucdcs!essick, essick@a.cs.uiuc.edu) University of Illinois at Urbana-Champaign Urbana, IL University of Illinois NFTIMESTAMP(8)
All times are GMT -4. The time now is 09:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy