Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cuando queremos utilizar grep en un archivo binario, nos da el siguiente error
- Binary file (standard input) matches
- Lo que tendremos que hacer es añadirle la opción '-a', para que lo trate como un archivo de texto.
- Ejemplo
- sudo cat /var/log/syslog | grep -a 'shutdown'
- O también con los comandos awk y strings
- sudo strings /var/log/syslog | grep 'shutdown' # strings
- sudo awk '/shutdown/' /var/log/syslog # awk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement