Linux/Parsing: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 3: Line 3:
<pre>
<pre>
sed 's/\x00/controlcharwashere/g'
sed 's/\x00/controlcharwashere/g'
</pre>
</blockquote>
* slowing output
<blockquote>
<pre>
cat incoming.log | pv -qL 1000 | tee temp
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 22:19, 18 November 2012

  • sed + control characters
sed 's/\x00/controlcharwashere/g'


  • slowing output
cat incoming.log | pv -qL 1000 | tee temp


sed -n '/Iowa/,/Montana/p'


  • show as hex
od -t x1 -An