Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# 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
You can’t perform that action at this time.