I wanted to scp file.txt to remote box my-remote-vm-1In my-remote-vm-1 there are two folders conf-1-ver-2,conf-2-ver-2. The integer part in the folder name can go from [0-9].What would be the best way to scp file.txt to these folders ?I have tried scp file.txt my-remote-vm-1:/tmp/conf-[0-9]-ver-[0-9]/.scp file.txt my-remote-vm-1:/tmp/conf-*/.Both failed with scp: ambiguous target.
scp a file to multiple folders
regular expression;scp