[Info-vax] Removing blank lines from text files
Jon Pinkley
jon.pinkley at gmail.com
Sat Jul 13 00:30:07 EDT 2019
On Friday, June 21, 2019 at 8:06:24 PM UTC-4, Arne Vajhøj wrote:
> On 6/21/2019 5:10 PM, Jim wrote:
> > $ search/out=t.t t.dat ""
>
> That finds *all* lines.
>
> Arne
Actually, it doesn't match lines with zero characters, i.e. null lines.
$ type test_blank.txt
This has two null lines and one line with a single space, and one line with a single tab, and one line with a single <NUL>
$ sea test_blank.txt ""/out=test_blank_1.txt /stat /form=pass
Files searched: 1 Buffered I/O count: 8
Records searched: 6 Direct I/O count: 10
Characters searched: 125 Page faults: 16
Records matched: 4 Elapsed CPU time: 0 00:00:00.00
Lines printed: 4 Elapsed time: 0 00:00:00.01
$
Note the difference between records searched and records matched.
More information about the Info-vax
mailing list