I have a directory " /data/archive
In this directory there are 8 different subdirectories.
eg : /data/archive/a /data/archive/b and so on
Files under these subdirectories have date appended to their names so I'm copying files only for the date I need.
Currently what I'm doing is this :
cd a scp *20210826* user@server:/data/20210826_inputfiles/a cd b scp *20210826* user@server:/data/20210826_inputfiles/b
Is it possible to code it in a way that I don't have to move through each directory one by one ?
Any help on this would be very helpful.
Thanks in advance!