Unix shell file copy flattening folder structure

后端 未结 5 1436
走了就别回头了
走了就别回头了 2021-01-30 08:52

On the UNIX bash shell (specifically Mac OS X Leopard) what would be the simplest way to copy every file having a specific extension from a folder hierarchy (including subdirect

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 09:42

    As far as the man page for cp on a FreeBSD box goes, there's no need for a -t switch. cp will assume the last argument on the command line to be the target directory if more than two names are passed.

提交回复
热议问题