Artificial intelligent assistant

sftp: command to select desired files to copy I have a long list of data files that I need to copy over to my server, they have the names data_1.dat data_2.dat data_3.dat ... data_100.dat Starting from `data_1.dat`, I would like to get all the files where the number is increased by 3, i.e. `data_4.dat`, `data_7.dat`, `data_10.dat`, ... Is there a way to specify this? Right now I am doing in manually using `get data_4.dat`, but there must be a way to automatize this.

On Linux:


printf -- '-get data_%d.txt\
' $(seq 1 3 100) | sftp -b - user@example.com


On BSD (with no `seq(1)` in sight):


printf -- '-get data_%d.txt\
' $(jot 100 1 100 3) | sftp -b - user@example.com

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy f3a3752ff2b7e5671a4d7190bfcaf659