Answer the question
In order to leave comments, you need to log in
Bash and variables
Hello gentlemen, I need a little help. I am writing a fairly simple script and got stuck a bit with data from a variable. If the data is specified directly in the script:
everything is fine, echo perfectly displays something like lostfilm.tv/download.php/2739/Survivors.S02E03.rus.Lostfilm.TV.avi.torrent
but if I create a variable
shows="(Survivors \|The.Event\)"
and I'm already writing the
script to me, it doesn't output anything, and as I understand it, wget simply doesn't work. there are no errors whatsoever. tell me pliz in which direction to dig?
...
url=$(wget -qO - $rss | grep -ioe 'http.*torrent' | grep -ie '[0-9]\{4\}/\(Survivors\|The.Event\)' | grep -v '720p\|HD')
echo $url
...
...
url=$(wget -qO - $rss | grep -ioe 'http.*torrent' | grep -ie '[0-9]\{4\}/\"$shows"' | grep -v '720p\|HD')
echo $url
...
Answer the question
In order to leave comments, you need to log in
url=$(wget -qO - $rss | grep -ioe 'http.*torrent' | grep -ie '[0-9]\{4\}/\'$shows | grep -v '720p\|HD' )
Unfortunately I can't check for sure right now, but try putting `` instead of " " and in some places ' '. I can't be more specific right now, sorry.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question