User Tools

Site Tools


linux:sed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
linux:sed [2018/09/26 17:41] – created percylinux:sed [2018/09/26 17:57] – [delete the redundant empty lines] percy
Line 14: Line 14:
 Or Or
   gsed ":d;N;s/\n/,/g;bd"   gsed ":d;N;s/\n/,/g;bd"
 +
 +==== delete the redundant empty lines ====
 +Refer
 +  - http://kodango.com/sed-and-awk-notes-part-5
 +
 +  sed '/^$/{N;/^\n$/D}'
  
  
  
/var/www/dokuwiki/wiki/data/pages/linux/sed.txt · Last modified: 2018/10/22 11:31 by percy