• 1-888-289-2246
  • 24x7x365 Presence

How to delete all the files in a directory except for some specific format files


The command below will delete all the files in the current directory except for the .php and .html files:-

rm !(*.php*.html)

]]>


Leave a Reply

Your email address will not be published. Required fields are marked *