I am new to bash scripting and trying to write a loop to run a curl command but however getting errors. Please suggest the write syntax.
    #!/usr/bin/env sh
    start = $1
    end = $2
    
    start=$(date -d $start +%Y-%m-%d)
    end=$(date -d $end +%Y-%m-%d)
    
    while [[ $start -le $end ]]
    do
        echo $start
        curl -H "command, which can't be shared"
        start=$(date -d"$start + 1 day" +"%Y-%m-%d")
    done
The command line to run the script used sh filename.sh "2022-02-01" "2022-02-25".
However, the first error I received is windows cannot find '2022-02-01'. Make sure you typed the name correctly, and then try again.
Please suggest the errors.
