I've been trying to copy some remote files to localhost using regex expression, but it reads the regex as if it would be a regular string and does not find any files matching that.
Any ideas why?
file-download
#!/bin/bash
scp "[email protected]:/home/student/download-this/[a-zA-Z0-9]+\.tar\.gz" .
I have also tried copying from localhost to remote device, but still the regex won't work with scp
file-upload
scp "/root/scripts/this[XYZ]_[0-9]{1,5}\.txt" [email protected]:/home/fs/upload


