Unix: How can I substitute consecutive empty lines with a single one in sed?
Channel: Peter Schneider
Date: 2024-03-01

How can I substitute consecutive empty lines with a single one in sed?
I hope you found a solution that worked for you :)
 The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA. 
 Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!

 (unix.stackexchange.com/users/52236/peterh)peterh 
 (unix.stackexchange.com/users/22142/don-crissti)don_crissti 
 (unix.stackexchange.com/users/123460/felixjn)FelixJN 
 A special thanks goes out to the (https://unix.stackexchange.com/questions/766897/how-can-i-substitute-consecutive-empty-lines-with-a-single-one-in-sed)Stackexchange community 
 
 I wish you all a wonderful day! Stay safe :)
 If anything is off, please write me at peter D.O.T schneider A.T ois42.de
 
  sed