I would like to use sed to search for the first part of a text file with consecutive lines with at least n non-space characters. I would like to print from the first of those lines to the end of the file.
What's the best way to formulate this?
|
I would like to use sed to search for the first part of a text file with consecutive lines with at least What's the best way to formulate this? |
|||
|
|
|
With sed, this should work:
|
|||
|
|
|
||||
|
I know you said sed (no pun intended) but if you can live with PERL, the following should do what you want (n=20):
Save it as foo.pl and run like so:
|
|||
|
|