Would anyone have an idea how (using bash script) to check if remote file exists? I'd need to know if file ftp://user:email@example.com/dir/somefile.txt
has already been created, if so, wget would down it. I just need a command which would return 'true' or 'false'.
I have experimented with test and wget, but it's a wrong path, I guess. I'm getting kinda confused :/
Thanks in advance,