Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #181143
| From | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: OT: Help with sort (and maybe awk or sed) |
| Date | 2017-05-20 15:30 +0200 |
| Message-ID | <tJcCe-20L-9@gated-at.bofh.it> (permalink) |
| References | <tJcsy-1Xo-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> I have a need to sort lists of URLs and associated titles formatted as
> follows:
>
> * [[<URL1>][<Title1>]]
>
> e.g [[http://www.google.com][Google search]]
>
> I'd like to get a simple sort routine to do that.
In my quick test,
sort -t '[' -k 4
seemed to do the trick,
Stefan
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OT: Help with sort (and maybe awk or sed) rhkramer@gmail.com - 2017-05-20 15:20 +0200
Re: OT: Help with sort (and maybe awk or sed) Stefan Monnier <monnier@iro.umontreal.ca> - 2017-05-20 15:30 +0200
Re: OT: Help with sort (and maybe awk or sed) Andre Majorel <aym-naibed@teaser.fr> - 2017-05-20 21:10 +0200
Re: OT: Help with sort (and maybe awk or sed) rhkramer@gmail.com - 2017-05-20 21:30 +0200
csiph-web