Search Results

Search: Posts Made By: mavictoro
2,178
Posted By mavictoro
Thanks guys, you guys are great!!!
Thanks guys, you guys are great!!!
2,178
Posted By mavictoro
awk...
awk 'NR==1{x=$3;y=$0;next}x==$3-1||x==$3-2{y=y"\n"$0;x=$3;p=1;next}p{print y;p=0;}{x=$3;y=$0}END{if (p){print y}}' file

THis is what I need, thank you bartus11 and everyone who posted replies....
2,178
Posted By mavictoro
awk help
Hi, I've been trying to do this without awk but it's getting too complicated but I don't know how to use arrays within awk, maybe this is how it could be done best.

I have files something like...
Showing results 1 to 3 of 3

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