Linux/Parsing: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 44: Line 44:




* Links
== Links ==
** http://www.unix.com/tips-tutorials/18009-12-ways-parse-file.html
* http://www.unix.com/tips-tutorials/18009-12-ways-parse-file.html
** http://sed.sourceforge.net/sed1line.txt
* http://sed.sourceforge.net/sed1line.txt
** http://www.grymoire.com/Unix/Sed.html
* http://www.grymoire.com/Unix/Sed.html
[[Category:Linux/Bash]]
[[Category:Linux/Bash]]
[[Category:Linux]]
[[Category:Linux]]

Revision as of 14:08, 4 August 2020

lines

  • grep
  • tail
tail 
tail -f                # follow
tail -n 10             # last 10 lines 

sed & awk

  • sed + control characters
sed 's/\x00/controlcharwashere/g'
sed -n '/Iowa/,/Montana/p'


other

  • slowing output
cat incoming.log | pv -qL 1000 | tee temp
  • show as hex
od -t x1 -An



Links