bash: URL: command not found

I keep getting the following error in bash (using windows):

$ URL = ""
bash: URL: command not found

The full command i am trying to run in bash is:

URL = ""


Running the full command runs the file but no download happens (I uassume because of this URL: command not found error.

If I run then nothing happens – similar to running the full command above.

The ‘important’ part of file for using the URL is os.system(f"wget {url} -0 {flatfile_parquet}"):

def main(params):
    user = params.user
    password = params.password
    host =
    port = params.port
    db = params.db
    table_name = params.table_name
    url = params.url
    flatfile_parquet = 'output.parquet'
    # download the parquet file
    os.system(f"wget {url} -0 {flatfile_parquet}")
    # connect to server
    engine = create_engine(f'postgresql://{user}:{password}@{host}:{port}/{db}')

I keep finding threads that say to use curl but I dont want to download the file in bash, I want to store the url in a variable and then use it in the file.

Any advice is appreciated, i’m kind of a noob with bash

Asked By: RedRum


There’s a syntax error on your first line. You cannot leave spaces around the "=" or else BASH will attempt to run the first word as a command. Consider:

$ a = "xx"
bash: a: command not found
$ echo = "xx"
= xx
$ a="xx"
$ echo "$a"

You should use:

$ URL=""
Answered By: Martin
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.