User Tools

Site Tools


sed:file_spacing:triple_space_a_file

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
sed:file_spacing:triple_space_a_file [2020/08/15 10:45] 192.168.1.1sed:file_spacing:triple_space_a_file [2020/08/15 10:46] (current) 192.168.1.1
Line 1: Line 1:
 ====== SED - File Spacing - Triple space a file ====== ====== SED - File Spacing - Triple space a file ======
  
 +
 +<code bash>
 +sed 'G;G' filename
 +</code>
 +
 +----
 +
 +===== Example =====
 +
 +Running that command again this file:
 +
 +<file bash testfile>
 +aaa
 +bbb
 +ccc
 +</file>
 +
 +returns:
 +
 +<file bash testfile>
 +aaa
 +
 +
 +bbb
 +
 +
 +ccc
 +
 +
 +</file>
  
  
sed/file_spacing/triple_space_a_file.1597488303.txt.gz · Last modified: 2020/08/15 10:45 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki