0

How to remove multiple files excluding a single file

In one of my folder there exists several files with .php .html .jpg and .png files.....

I need to remove only the .png files... is that possible with any command???

Advanced commands Add a comment
jayce
asked Jan 31 2017

Answer

0

ohhh before that run the below command to enable the symbol....

#shopt -s extglob

Add a comment
jagan
asked Jan 30 2017
edited Oct 05 2018
Post your Answer
0

Use ! option in rm command,

#rm -rf !(.png) It will remove only the .png files.....!!!

Add a comment
jagan
asked Jan 30 2017
edited Oct 05 2018
Post your Answer
0
Hi, i have updated correctly to apache 2.4. but how i can enable http2 support? i have added --enable-http2 to configure but seems not enable http2!
Add a comment
jayce
asked Jan 30 2017
edited Oct 05 2018
Post your Answer
0
I've installed ubuntu 16.04 server and there isn't any bonding module, i.e,, when I write "modprobe bonding" a "modprobe: FATAL: module bonding not found in directory /lib/modules/4.4.0.66-generic" message is displayed (ifenslave is installed). How can I solve this? I'd like to have a bonded network cards.
Add a comment
jayce
asked Jan 30 2017
edited Oct 05 2018
Post your Answer
0

rm -rf *.png these command remove only png files.......

Add a comment
arunkumarak
asked Feb 16 2017
edited Oct 05 2018
Post your Answer