diff --git a/cmd/catp.pgo b/cmd/catp.pgo index 77b866a..b4d4781 100644 Binary files a/cmd/catp.pgo and b/cmd/catp.pgo differ diff --git a/cmd/catp/main.go b/cmd/catp/main.go index af201c2..6148277 100644 --- a/cmd/catp/main.go +++ b/cmd/catp/main.go @@ -70,7 +70,7 @@ func (r *runner) scanFile(rd io.Reader) { for s.Scan() { for _, g := range r.grep { if bytes.Contains(s.Bytes(), g) { - _, _ = os.Stdout.Write(s.Bytes()) + _, _ = os.Stdout.Write(append(s.Bytes(), '\n')) atomic.AddInt64(&r.matches, 1) break