how can i search for files and zip them in one zip file

前端 未结 3 627
走了就别回头了
走了就别回头了 2021-01-31 15:12

I tried to search files and zip them with the following commmand

find . regexpression -exec zip {} \\;

however it is not working. How can i do

3条回答
  •  故里飘歌
    2021-01-31 16:05

    You can also provide the names as the result of your find command:

    zip name.zip `find . -name  -print`
    

    This is a feature of the shell you are using. You can search for "backticks" to determine how your shell handles this.

提交回复
热议问题