OpenLink Software

Usage stats on Sort lines by a specified word number

 Permalink

an Entity in Data Space: 134.155.108.49:8890

Based on the script by Robert Webb found at [help eval-examples] to sort lines, I made some modifications to enable Sort() to sort lines according to word number count. I defined words to be clusters of non-whitespace characters separated by whitespace characters. For example, the line "while (k == 0)" has 4 words. To use, get into visual-block mode (hit Ctrl-V from normal mode, or Ctrl-Q in Windows) and highlight the lines you wish to sort. Then hit or other key mapping of your choice. You will be prompted to enter a number, which is the word number count from the left. Example:

Graph IRICount
http://dbkwik.webdatacommons.org15
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software