Question: Your present working directory has the following 6 files: example, example1, example2, example12, example-abc and examples. Use a single command to delete all but the

Your present working directory has the following 6 files: example, example1, example2, example12, example-abc and examples. Use a single command to delete all but the example file.

There are many ways to do this. Try a shell expansion pattern that basically says "example followed by one or more characters" or "file names that do not end with e."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!