im using this code to upload all file from folder /data/386/file.log
Code: Select all
find /data/386 -type f -exec curl -u user:pass --ftp-create-dirs -T {} ftp://myftp.com/data/Post1/{} \;how can i change the code to obtain this result? ftp://myftp.com/data/Post1/file.log
thanks