I have a directories in
/media/home/Seagate Expansion Drive/Downloads/Java Spring Gurus/folder1 .../folder2 .../foldern
Inside every directory I have a
*.mp4 file and different types of additional files (*
.srt, *.pdf etc.). I want to keep all
folderx/rest/ and move the other files there.
How do I do that?
for files in $(find "/media/sergio/Seagate Expansion Drive/DOWNS/Spring Framework 5" | grep -P "([.]srt$)|([.]pdf$)") do mv $files /resto done
but I got a lot of errors
mv: cannot stat