Over a million developers have joined DZone.

Remove All Files In A Directory Except *.ogg

·
Remove all files in a directory except *.ogg


#!/bin/bash

find . ! -name "*.ogg" -exec rm -f {} \; 
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}