I want to write a shell script which contains cookies like this wget --load-cookies cookies.txt URL. I have written something like this:#!/bin/bashwget --load-cookies cookies.txt $1when I run this command in the folder which contains the cookies.txt like bash test.sh URL the command wget runs but obviously, it is not getting the cookies.txt and the output tells me that user or password is incorrect. and when I run wget --load-cookies cookies.txt URL it is working correctly and I can download the content I want. could you guys please help me where am I mistaking in the Shell script writing process. any help would be appreciated.Oh, by the way, I am running on an Ubuntu 16.04.EditedOne thing I had understood; the URL must be between double quotes, is this bash putting the argument between double quotes?
How to write a wget shell script which contains cookies
linux;shell;ubuntu;scripting