Re: ali -- only one line

Ralph Corderoy <[email protected]> Thu, 21 Nov 2024 16:25:43 +0000
Newsgroups gmane.mail.nmh.devel
Message-ID <[email protected]>
Hi hymie,

> I was hoping to get a list of all aliases, each alias/group on
> a single line.

A quick look at the output of ‘ali’, though not its source,
suggests every line which continues with another ends with a comma,
and they're the only lines ending with a comma.

    ali | sed ':l; /,$/{N; s/,\n/,/; bl}'

-- 
Cheers, Ralph.