bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create bash-pattern to exclude a matching param in param expa


From: Linda Walsh
Subject: Re: How to create bash-pattern to exclude a matching param in param expansion&matching?
Date: Mon, 28 Oct 2013 15:41:06 -0700
User-agent: Thunderbird

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-)*))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]