Search Results

Search: Posts Made By: vijaidhas
6,960
Posted By clx
Quoting variables wont interpolate them. They...
Quoting variables wont interpolate them. They would be treated like literal string.

Try
dinfo = mktime(year FS month FS day" 12 00 00")
6,960
Posted By clx
Ok, sorry for misunderstanding. In that case,...
Ok, sorry for misunderstanding. In that case, even if it works, system returns the exit status for the command. Its not preferred to store the output.

cnamejj's solution is off course preferable,...
6,960
Posted By cnamejj
You can use the mktime() and strftime() routines...
You can use the mktime() and strftime() routines if your awk has them (gawk does). Here's a crude sample to give you an idea how it work. Check the "man gawk" page for more info

gawk 'BEGIN {...
6,960
Posted By clx
Try awk -v woy="$(date -d "$rt_date" +%-V)"...
Try
awk -v woy="$(date -d "$rt_date" +%-V)" -F","
'BEGIN { #some variable assignment}

{ #some calculation and put values in array}

END {
year=#getting it from array and assume this will...
Showing results 1 to 4 of 4

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