Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
BEGIN {
LN=5
SY=2*N
SZ=SY + 1
}
{
for( i=0; i < SZ; i++ ) A[i] = A[i + 1]
A[SY]=$0
if( A[LN] ~ /text/ ){
for( j = (NR<SZ ? SZ-NR : 0); j < SZ; j++ ) print A[j]
}
}
END {
k = SZ
while( k > LN ){
for( i=0; i < SZ; i++ ) A[i] = A[i + 1]
k--
if( A[LN] ~ /text/ ){
for( j = (NR<SZ ? k-NR : 0); j < k; j++ ) print A[j]
}
}
}