On 10/28/2013 04:41 PM, Linda Walsh wrote: > On 10/28/2013 3:35 PM, Linda Walsh wrote: >> ls !($(echo *+(-IGN-)*|tr " " "|")) >> >> I tried the above in a dir that has 2 files w/the pattern, and >> 532 w/o, and it worked, but how much of that was 'luck'? > --- > Slight improvement -- but still not a direct bash pattern: > > !($(printf "%s|" *+(-IGN-)*))
What's wrong with: !(*-IGN-*) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature