How to write those into one line, also without repeat the same path?rsync -a root@somewhere:/folder/remote/*.txt .rsync -a root@somewhere:/folder/remote/*.jpg .
Rsync two file types in one command?
shell;rsync
I'd write it like this:rsync -a root@somewhere:/folder/remote/*.{txt,jpg} .