Created
March 22, 2012 16:27
-
-
Save jdorfman/2159366 to your computer and use it in GitHub Desktop.
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
# Echo a Range | |
echo 192.168.0.{2..102} > file.txt | |
# Replace spaces with newlines | |
tr ' ' '\n' < file.txt | |
# Remove a line (386) from a file | |
sed -i '386d' .ssh/known_host | |
# Remove 2 lines (22 & 36) | |
sed -i '22,36d' .ssh/known_host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment