Skip to content
Advertisement

How to copy certain range of files in single command?

I have a folder which has files range from 20190501 to 20190530, so i want to copy files range from 20190503 to 20190517 by single command. Is there any such copy command in linux?

I tried scp -r 201905* /destination, but this copies everything file range from 20190501 to 20190530, is there other way to copy certain range of files?

Advertisement

Answer

scp -r 201905{03..17} /destination

(I’m assuming you are using bash here)

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement