Lets say there are two files in the working directory:
test201612290900.txt
test201612290901.txt
When I run
ftp -n $HOST <<SCRIPT
user $USER $PASSWORD
put test*.txt test.txt
bye
SCRIPT
with the ftp
executable (linux), only one file gets put to the ftp site.
EDIT: I use this *
because I don't now the exact filename in advance.
I found out it is always the first match (test201612290900.txt
) that gets copied to the ftp site.
My question: is this documented behaviour? and, can I get control over this behaviour?