I think boxing each line and discarding the unwanted lines is a good
approach here.
For example:
(#~ *@#@-.&(' ',TAB)@>)cutLF d
That said, I guess you could do something like this:
require'regex'
,d rxfrom~'^.*\S.*$' rxmatches d
Or, equivalently:
require'regex'
,(rxfrom~'^.*\S.*$'
Hello,
Goal: read from an ascii input text file, skipping all whitespace lines
(any number of them), and only store text lines in boxes.
For example below, only line 3 and 4 should be stored in boxes (vim
test.txt, :set nu list):
1 $
2 ^I$
3 Line #3. Line #1 is LF, and line #2 is a TAB + LF.$
4