remove all of a file type from a directory and its children

后端 未结 6 1717
南笙
南笙 2021-02-01 15:36

I was under impression that

rm -r *.xml

would remove all file from parent and child however:

*.xml: No such file or directory
         


        
6条回答
  •  猫巷女王i
    2021-02-01 16:00

    An easy way to do is

    rm -f *.xml

    This will remove all .xml files from current directory.

提交回复
热议问题