Linux/Parsing: Unterschied zwischen den Versionen

Aus Wiki
Wechseln zu: Navigation, Suche
Zeile 44: Zeile 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]]

Version vom 4. August 2020, 14:08 Uhr

Inhaltsverzeichnis

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