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

Re: OT: Help with sort (and maybe awk or sed)



On Saturday, May 20, 2017 09:19:07 AM Stefan Monnier wrote:
> > 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,

Thanks!  Two wows!

   1. Wow, thanks (again)!

   2.  Wow, how did I miss the -t option when I read (well, I suppose, 
skimmed) man sort this morning.  I must have been asleep!

regards,
Randy Kramer


Reply to: