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"