From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Kim Minh Kaplan <kimminh.kaplan+nomuch@afnic.fr>,
notmuch <notmuch@notmuchmail.org>
Subject: Re: listing all the tags I've been using
Date: Fri, 20 Nov 2020 17:01:40 +0100 [thread overview]
Message-ID: <87v9e0ggpn.fsf@m4x.org> (raw)
In-Reply-To: <874klkoxfz.fsf@kakou.tech.prive.nic.fr>
[-- Attachment #1.1: Type: text/plain, Size: 492 bytes --]
On 2020-11-20 15:33, Kim Minh Kaplan <kimminh.kaplan+nomuch@afnic.fr> writes:
> Alan Schmitt writes:
>
>> I would like to list all
>> the tags I've used. Is there a way to do it?
>
> notmuch search --output=tags '*'
Thanks a lot Ralph and Kim. For the record, I refined Ralph's solution
to:
notmuch dump | tail -n +2 | gawk -F '--' '{print $1}' | gawk -F ' ' '{ for(i=1; i<=NF; i+=1) {printf "%s\n", $i;}}' | sort -u
which I can now happily throw away ;)
Best,
Alan
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2020-11-20 16:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-20 14:45 listing all the tags I've been using Alan Schmitt
2020-11-20 15:02 ` Ralph Seichter
2020-11-20 15:33 ` Kim Minh Kaplan
2020-11-20 15:40 ` Ralph Seichter
2020-11-20 16:01 ` Alan Schmitt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9e0ggpn.fsf@m4x.org \
--to=alan.schmitt@polytechnique.org \
--cc=kimminh.kaplan+nomuch@afnic.fr \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).