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
Get step-by-step solutions from verified subject matter experts
