nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Getting a list of message numbers into a script


From: Bill Wohler
Subject: Re: [Nmh-workers] Getting a list of message numbers into a script
Date: Mon, 21 Jul 2014 18:29:04 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

David Levine <address@hidden> writes:

> Norm wrote:
>
>> Is there a good way to get a list of message numbers into a bash script,
>> without the prefixes normally attached by mhpath and mark. What I've been
>> doing is something ugly like:
>> 
>> 
>>      $(mhpath first:3 17 last:4| sed -e "address@hidden/@@" -e 
>> "address@hidden@@"
>> 
>> Is there a cleaner way?
>
> Yes, use pick:
>
>     $(pick first:3 17 last:4)
>
> David

Or scan:

    $ scan -format '%(msg)' +done first:3 17 last:4
    1
    2
    3
    17
    4482
    4483
    4484
    4485

>
> _______________________________________________
> Nmh-workers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/nmh-workers
>

-- 
Bill Wohler <address@hidden> aka <address@hidden>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD




reply via email to

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