Search Results

Search: Posts Made By: RavinderSingh13
2,453
Posted By RavinderSingh13
Hello Rahul, Following is the explanation...
Hello Rahul,

Following is the explanation for same, let me know if you have any queries. Because array A is having $2 as index and array B has as $(NF-1) and $NF. But array A's value is $(NF-1)...
2,453
Posted By RavinderSingh13
Hello looney, Following may help you in...
Hello looney,

Following may help you in same.

awk '{DATE1=date -d $(NF-1) " " $NF; ######### making a variable here with name DATE1 whose value is equal to date -d $(NF-1) " " $NF, where...
2,453
Posted By RavinderSingh13
Hello rahul2662, Seems to be you are using...
Hello rahul2662,

Seems to be you are using GNU DATE, then following may help you in same.

awk '{DATE1=date -d $(NF-1) " " $NF;A[$2]=DATE1 > A[$2]?DATE1:A[$2];B[$(NF-1) OFS $NF]=$0} END{for(i in...
Showing results 1 to 3 of 3

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