Shell command/script to delete files whose names are in a text file

后端 未结 6 1979
醉酒成梦
醉酒成梦 2020-12-24 04:00

I have a list of files in a .txt file (say list.txt). I want to delete the files in that list. I haven\'t done scripting before. Could some give the shell script/command I c

6条回答
  •  遥遥无期
    2020-12-24 04:13

    On linux, you can try:

    printf "%s\n" $(

    In my case, my .txt file contained a list of items of the kind *.ext and worked fine.

提交回复
热议问题