Capture IP From PING

terminal

This is just a simple sed to capture IP address from ping. Note host must allow ICMP. This was tested on sh, bash and zsh. An example:

yum history

On RHEL/CentOS, yum history is not well-known but is a nice way to undo package installs, including dependencies, or updates. Usage is self-explanatory. I provided some examples below: If you really want you can undo […]