Skip to content

Commit

Permalink
added a simple on that grep mediafire links
Browse files Browse the repository at this point in the history
  • Loading branch information
lwheng committed Mar 20, 2012
1 parent c39caca commit 120084b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions simple.sh
@@ -0,0 +1,16 @@
# README
# Input file: Text file with some links
# Output file: Mediafire links to stdout
# Note: The links are 'simple' such that there is no redirection, and mediafire links are easily grep-able

INPUTFILE=$1

cat $INPUTFILE | while read LINE
do
echo $(curl $LINE | tr "\"" "\n" | grep mediafire) >> ThisIsTheTempFileYouCannotMiss.txt
done
cat ThisIsTheTempFileYouCannotMiss.txt
if [ -e ThisIsTheTempFileYouCannotMiss.txt ]
then
rm ThisIsTheTempFileYouCannotMiss.txt
fi

0 comments on commit 120084b

Please sign in to comment.