On Wednesday, 22 November 2000 at 19:19, Leonid Mamtchenkov wrote:
> Hello all,
> 
> Maybe I need some sleep or something, but I cannot solve something here ;-)
> In my .muttrc I have the following line:
> 
> mailboxes `echo ~/Mail/in*`
> 
> This works pretty well... But what I need to do is to show me mailboxes which
> begin with "in" and do _not_ and with ".saved" ...  How do I go about it?
> 
> I have tried to do all different kinds of ls and then "s/\n/ /g", but it does
> not work... Any ideas?

Here's an untested guess:

mailboxes `ls ~/Mail/in* | grep -v .saved | xargs echo`

although it's usually simpler to just change your naming scheme so
shell globbing works better (eg instead of adding .saved at the end,
use saved. at the start)

-- 
Don't make Godzilla mad!

PGP signature

Reply via email to