1

fuzzy sequence match in a text file

view story
linux-howto

http://www.unix.com – Hi Forum: I have struggle with it and decide to use my eye ball to accomplish this. Basically I am looking for sequence of date inside a file. If one of the sequence repeat 2-3 time or skip once; it's still consider a match. Code: input text file: Sep 6 A Sep 6 A Sep 10 A Sep 7 B Sep 8 B Sep 9 B Sep 10 B Sep 11 B Sep 7 C Sep 7 C Sep 7 C Sep 11 C Sep 8 D Sep 9 E Sep 7 F Sep 8 F Sep 9 F Sep 10 F Sep 11 F Sep 7 G Sep 8 G Sep 9 G Sep 10 G Sep 7 H Sep 8 H Sep 9 H Sep 7 I Sep 8 I Sep 8 I Sep 9 I Sep 10 I Sep 7 J Sep 7 J Sep 7 J Sep 9 J Sep 10 J (HowTos)