How to find files recursively by file type and copy them to a directory while in ssh?

前端 未结 3 1744
面向向阳花
面向向阳花 2020-12-22 22:46

I would like to find all the pdf files in a folder. It contains pdf files inside and more directories that contain more as well. The folder is loca

3条回答
  •  别那么骄傲
    2020-12-22 23:23

    Something like this should work.

    ssh user@ip.addr 'find -type f -name "*.pdf" -exec cp {} ./pdfsfolder \;'

提交回复
热议问题