How To Remove All Files In A Folder Except One Specific File In Linux

Remove All Files In A Folder Except One Specific File In Linux

You may also like...

  • Rogerio Pereira da Silva

    ls | egrep -v ‘.(doc|mp3|pdf)$’ | xargs -iXX rm -fv XX