I have awk command :
awk -F ' ' '{ print $NF }' log filename
And it gives the output as below:
06:00:00
parameters:
SDS
(2)
no
no
no
no
doc=4000000000).
information:
0
5898
5898
06:06:25
The problem is i need to save this in a array.
For example, when print or echo $array[0]
i should get 06:00:00 and similarly
$array[1] = parameters:
.
.
.
$array[n] = 06:06:25
my end goal is to print them using a print statement i.e
printf("start time: %d and end time: %d", array[0], array[n]")
Output:
start time:06:00:00 and end time:06:06:25
Kindly help...