Search Results

Search: Posts Made By: nayanasavio
1,859
Posted By nayanasavio
#!/usr/bin/ksh awk ' { ...
#!/usr/bin/ksh
awk '
{
dial_date="May 26, 2010"
print dial_date
"date -d "dial_date " +%d%m%Y" | getline aa
print aa
} END {}' < "input"
exit 0


Messge...
1,859
Posted By nayanasavio
I tried : `"date -d "dial_date " +%d%m%Y"` |...
I tried :
`"date -d "dial_date " +%d%m%Y"` | getline aa
I got an error : sh -c
1,859
Posted By nayanasavio
date -d 'May 20, 2010' +%d%m in awk
Hi,

I am working on Redhat GNU linux


#!/usr/bin/ksh
awk '
{
dial_date="May 26, 2010"
print dial_date
aa ='`date -d '"dial_date"' +%d%m%Y`'
print aa
}...
19,061
Posted By nayanasavio
Re: Date Calculations
hi there,
date -d '1 week ago'
or
date -d '7 days ago'
will give the date and time of exactly a week ago.
You can use '1 month ago' 'yesterday', '2 hours ago', etc..
For future dates, use...
Showing results 1 to 4 of 4

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