Is there any way to remove all files in a given directory (not recursively) using a pattern?
As an example, I have some files named file1.jpg, file2.jpg, file3.jpg, etc., and I want to know if there is any method that acceps wildcards like this UNIX command:
rm file*.jpg
Try this:
for your example
you can use as follows: