Created
December 4, 2011 22:02
-
-
Save rilindo/1431426 to your computer and use it in GitHub Desktop.
Removes Hosts IP and backups existing known_hosts file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i .`date "+%m%d%H%M%Y.%S"` 's/192.168.15.61\(.*\)//' ~/.ssh/known_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment