User Tools

Site Tools


sed:print:print_only_lines_which_match_regular_expression

Differences

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

Link to this comparison view

sed:print:print_only_lines_which_match_regular_expression [2020/08/16 12:39] – created 192.168.1.1sed:print:print_only_lines_which_match_regular_expression [2020/08/17 08:55] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== SED - Print - Print only lines which match regular expression ====== 
- 
-Emulates "grep". 
- 
-<code bash> 
-sed -n '/regexp/p'           # method 1 
-sed '/regexp/!d'             # method 2 
-</code> 
  
sed/print/print_only_lines_which_match_regular_expression.1597581566.txt.gz · Last modified: 2020/08/16 12:39 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki