FG
💻 Software

Remove everything except?

Fresh5 days ago
Mar 15, 202622221 views
Confidence Score0%
0%

Problem

Possible Duplicate: Remove all files but one with rm In unix, to remove zip files in a directory one can simply type How can one remove everything except zip files?

Error Output

rm *.zip

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Remove everything except?

Low Risk

This appears to work. The ! represents "not". extglob needs to be enabled in the shell behavior settings for this to work. It is probably already enabled... but if not, enable it with: And after answering this... indeed Ignacio Vazquez-Abrams you ar…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment