User Tools

Site Tools


sed:file_spacing:undo_double-spacing_a_file

Differences

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

Link to this comparison view

sed:file_spacing:undo_double-spacing_a_file [2020/08/15 10:47] – created 192.168.1.1sed:file_spacing:undo_double-spacing_a_file [2020/08/15 10:48] (current) 192.168.1.1
Line 2: Line 2:
  
 Assumes even-numbered lines are always blank. Assumes even-numbered lines are always blank.
 +
 +
 +<code bash>
 +sed 'n;d' 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/undo_double-spacing_a_file.1597488457.txt.gz · Last modified: 2020/08/15 10:47 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki