I need to download remote files using curl command below
curl -O -J "URL"
This is working as expected when I use this command separately when I try to use the same command in a shell script(below). it gives error below.
#!/bin/bash
$curl -O -J "$url_final"
=======================================================
"curl: (3) URL using bad/illegal format or missing URL"
$url_final, and is$curla typo ?$url_finalis defined inside the script ? I am talking about the$sign in front ofcurlinside the script, is that a typo ?