Search Results

Search: Posts Made By: victory101
4,867
Posted By victory101
Thanks for the change, it worked as expected :b:....
Thanks for the change, it worked as expected :b:. This gave me an opportunity to get an insight on awk programming.
4,867
Posted By victory101
Thanks Corona for the reply. As I was having...
Thanks Corona for the reply.

As I was having the date in $4, I changed as follows.

gawk -F, -v OFS=, '{ split(/-/, A, $4); T=systime()-mktime(sprintf("%04d %02d %02d 00 00 00", A[1], A[2],...
4,867
Posted By victory101
Date manipulation using awk
Hi Experts,

In the below mentioned file,

John, Miami, ,2013-10-03

I would like to perform difference of $4 and sysdate.

If sysdate date is 2013-10-04, then the output shall be

John,...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy