Can I use Bash extended glob patterns to implement logical 'AND' ? Say I have a folder of jpg files (among others) and I want to rm all jpg files except A.jpg and B.jpg. How would I do that without trying tricks like remaming the files temporarily and so on ? I guess the general theme is how one can combine logical expressions and negations in Bash extended globs.
migrated from stackoverflow.com Apr 12 '12 at 7:43
This question came from our site for professional and enthusiast programmers.
You can also use