Last active
August 7, 2021 16:32
-
-
Save htkcodes/8661e92b8e15bd3a78460e48f46a9da9 to your computer and use it in GitHub Desktop.
Useful scripts
This file contains hidden or 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
#Grabs IP's from a file | |
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' file.txt | |
#COMMA SEP IP | |
grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' ssl.txt | tr '\n' ',' | sed 's/.$//' - comma seperated ips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
grep -o '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | tr '\n' ',' | sed 's/.$//' - comma seperated ips