I have folder with some subfolders. I want to scp only items in current folder without subfolders in that folder.
If I do:
scp "$PWD"/* [email protected]:/home/pi/ISKRA/
I got expected result in destination (copy of all files except subfolders), but got “not a regular file” warning as there are subfolders.
If I do:
scp -r "$PWD"/* [email protected]:/home/pi/ISKRA/
I don’t get warnings but on destiantion I also get all unwanted stuf in subfolders.
So 1st example near work, just want to avoid warning.