Re: ali -- only one line
[email protected] Thu, 21 Nov 2024 11:34:06 -0500
| Newsgroups | gmane.mail.nmh.devel |
|---|---|
| Organization | Eric Conspiracy Secret Labs |
| Message-ID | <[email protected]> |
Ralph Corderoy writes:
>> 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}'
Wow. That's perfect. Thanks! (I've forgotten most of my sed since I learned
perl)
--hymie!