Login to Members Area

Choose the service you want to log in
24x7x365 Presence
Live Chat

Hosting Blog


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)

Vimal Tuesday 01 October 2013 - 09:19 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.