Wednesday, March 31, 2010

There's a way to do that in emacs

Given a number of lines of text such as

foopy charlie
foo bravo
food alpha

and you want to sort them by their second field so they end up like

food alpha
foo bravo
foopy charlie

the right emacs incantation is:

C-u 2 M-x sort-fields

That's all.

1 comment:

Anonymous said...

Nice to meet you!I want to share you with the surprise. We are specialized in producing laptop batteries, like acer aspire oneacer aspire 3200acer travelmate 2200,,acer aspire 4310acer aspire 3100acer travelmate 4200Dell Inspiron 6400Dell Inspiron E1505Dell Latitude D620Latitude D600Compaq EVO N800Compaq Presario 900HP Compaq NC6000HP Compaq NX9010Compaq Presario C700Compaq Presario M2000Compaq B1900Dell Latitude CPIDell M65hp f2019ahp f1739ahp pavilion dv1000hp omnibook 6000hp Business Notebook 6510bAsus EEE PC 701Asus A2Asus A3000acer aspire 5500Dell B120 and so on, have high quality and reasonable price, if you need, you can just try, Hope you will like it.