Solved

vim  command to alphabetize lines in a file

Posted on 2012-04-07
2
575 Views
Last Modified: 2012-04-08
I'm looking for a vim command that will alphabetize the lines in a file. That is:

pear
apple
orange


..would change to..

apple
pear
orange
0
Comment
Question by:zumpoof
2 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 37820381
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37820408
vim :%!sort
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question