I'm trying to create a script to do the following: extract the magnet link from a lynx bookmark and then use it as part of a curl command. like this:
I have the following to get the magnet link:
lynx -dump -hiddenlinks=listonly lynx_bookmarks.html | grep "magnet" | sed 's/&.*//' | cut -c 7-
But I am unsure as to how to glue the two parts together to create a single script.
Can I have some suggestions please?
BTW, I am a total amateur at this and I'm sure that even what have can be improved.