Last active
May 10, 2017 16:40
-
-
Save Avyd/9c54593cd1a44ad0af23 to your computer and use it in GitHub Desktop.
irc_link_collector
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
#!/bin/bash | |
while true ; | |
do | |
echo "Collect the links..." | |
for x in $(find /home/user/irclogs/ -name "*.log" -print) ; do egrep --only-matching "http(s?):\/\/[^ \"\(\)\<\>]*" $x | tac ; done > output.txt | |
echo "Let's wait for some seconds..." | |
sleep 15 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment