Search Results

Search: Posts Made By: SriniShoo
3,309
Posted By SriniShoo
In the code 1. I am extracting the 3rd and 4th...
In the code
1. I am extracting the 3rd and 4th character
2. Since the list is incremental, I am checking current number is +1 of the previous number
3. If not, I am printing all the numbers...
3,309
Posted By SriniShoo
awk -F '.' 'NR == 1{t=substr($1,5); a=00} ...
awk -F '.' 'NR == 1{t=substr($1,5); a=00}
{b=substr($1, 3, 2); for(i=a+1; i<b+0; i++)
printf "%02d%d\n", i, t; a=b}
END {for(i=a+1; i<=23; i++) printf "%02d%d\n", i, t}' file
Showing results 1 to 2 of 2

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