Delete all files in a folder that don\’t match a certain file extension

$ rm !(*.foo|*.bar|*.baz)

Deletes all files in a folder that are NOT *.foo, *.bar or *.baz files. Edit the pattern inside the brackets as you like.

\"\"

by David Winterbottom (codeinthehole.com)

\"\"
\"\"

\"\"

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/TCRb2ku_V1Y/delete-all-files-in-a-folder-that-dont-match-a-certain-file-extension

\"Reblog

Setup of gdm

gdmsetup is the command you are looking for… Just run gdmsetup and you get a whole lot of configurations that you can modify.

Building Your Own Linux Kernel, part 1


Bookmark this category

There are a lot of reasons to customize your own Linux kernel: better performance, bugfixes, try out new features, and earn valuable geekcreds. In this new series Akkana Peck introduces us to the fundamental steps of building a Linux kernel.

URL: http://lxer.com/module/newswire/ext_link.php?rid=125920