For example:
AAA
BBBBBBB
CCCCCCC
Delete the blank line between B and C is greater than or equal to 2 rows, but not to delete the line between A and B.
CodePudding user response:
Sed 'N./^ \ n/D 'a.t xtThis will remove empty lines in a row, but will retain a line
May not meet your request, but I can only do this step the
CodePudding user response:
Basically can satisfy my needs, I'll use N, but can't remember DThank you very much!