User Tools

Site Tools


linux:scripts:sed_fu

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
linux:scripts:sed_fu [2012/05/02 13:28]
amon
linux:scripts:sed_fu [2016/07/25 14:17] (current)
amon
Line 21: Line 21:
 done done
 </​code>​ </​code>​
 +
 +Keep only lines starting with:
 +  * ''​value1_value3''​
 +  * ''​value2_value3''​
 +<code bash>
 +  sed -E -e '/​^(value1|value2)_value3/​!d'​
 +</​code>​
 +
linux/scripts/sed_fu.txt · Last modified: 2016/07/25 14:17 by amon