Linux/Parsing: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 1: Line 1:
== lines ==
* grep
* tail
<blockquote>
<pre>
tail
tail -f                # follow
tail -n 10            # last 10 lines
</pre>
</blockquote>
*
* sed + control characters
* sed + control characters
<blockquote>
<blockquote>
Line 30: Line 42:
</pre>
</pre>
</blockquote>
</blockquote>





Revision as of 14:08, 4 August 2020

lines

  • grep
  • tail
tail 
tail -f                # follow
tail -n 10             # last 10 lines 
  • 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