Search Results

Search: Posts Made By: skar_a
5,101
Posted By skar_a
awk '{ if( NR == 1 ) start=$1;if(NR != 1 && $1 !=...
awk '{ if( NR == 1 ) start=$1;if(NR != 1 && $1 != (prev+1)) {print start,prev;start=$1;}prev=$1}END{print start,prev}' infile
Showing results 1 to 1 of 1

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