Fill the missing dates using awk
问题 I have some missing dates in a file. e.g. $cat ifile.txt 20060805 20060807 20060808 20060809 20060810 20060813 20060815 20060829 20060901 20060903 20060904 20060905 20070712 20070713 20070716 20070717 The dates are in the format YYYYMMDD. My intention is fill the missing dates in between the dates if they are missing maximum for 5 day e.g. 20060805 20060806 ---- This was missed 20060807 20060808 20060809 20060810 20060811 ----- This was missed 20060812 ----- This was missed 20060813 20060814