linux_wiki:sed

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux_wiki:sed [2016/02/11 22:29]
billdozor
linux_wiki:sed [2016/03/18 23:23]
billdozor [Sed]
Line 6: Line 6:
  
 **Checklist** **Checklist**
-  * Linux distro with the 'sed' package installed+  * Distro(s): Any 
 +  * Package: 'sed' package installed
  
 ---- ----
Line 14: Line 15:
 Different ways to print specific lines. Different ways to print specific lines.
  
-Print only line 5 pattern space<code bash>sed -n '5p' /etc/passwd+Print only line 5 pattern space<code bash>sed -n '5p' /etc/passwd</code>
   * -n => silent; do not print the entire file    * -n => silent; do not print the entire file 
  
  • linux_wiki/sed.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)