Would anyone have an idea how (using bash script) to check if remote file exists? I'd need to know if file ftp://user:firstname.lastname@example.org/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,