Is there a way of handling invers bash v4 shell expansion, ie. treat all files NOT like a wildcard? I need to rm
all files that are not of the format 'Folder-???'
in this case and was wondering if there is a shorter (ie. built-in) way then doing a
for file in *
do
[[ $i =~ \Folder-...\ ]] && rm '$i'
done
loop. (the example doesn't work, btw...)
Just out of bash learning curiosity...