Date from the time stamp
- From: "pawan_test" <sridhara007@xxxxxxxxx>
- Date: 28 Sep 2006 08:46:10 -0700
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 any output. can anyone please suggest me.
thanks
mark
.
- Follow-Ups:
- Re: Date from the time stamp
- From: Chris F.A. Johnson
- Re: Date from the time stamp
- From: Stephane Chazelas
- Re: Date from the time stamp
- Prev by Date: Re: duplicate entries - compare files
- Next by Date: Re: Date from the time stamp
- Previous by thread: tcsh bug
- Next by thread: Re: Date from the time stamp
- Index(es):
Relevant Pages
|