[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[equinox-dev] Contribution: grep and sort console extension.
- From: Marcin Okraszewski <marcin.okraszewski@xxxxxxxxxxxxxxxx>
- Date: Fri, 11 May 2007 14:05:39 +0200
- Delivered-to: firstname.lastname@example.org
- User-agent: Thunderbird 184.108.40.206 (X11/20070326)
Some time ago I did a sort and grep commands for console. It was was
useful for debuging. It is able to grep and sort output from any console
command. Syntax is similar to shell, but output goes in reverse order -
from last command to previous. So for instance to sort Equinox and PDE
plugins and sort by plugin name, you would do (more in help command):
sort 3 | grep org\.eclipse\.(equinox|pde) | ss
Or to sort by state, do:
sort 2 | grep org\.eclipse\.(equinox|pde) | ss
Note - it first starts "ss", then greps, and then sorts - reverse order.
The plugin is available under:
Maybe you would like to include it in Equinox. We won't do it with our
distribution - it was rather internal development tool. But I think it
could be useful for Equinox users.
The code probably should be reviewed, since it was a very quick
implementation. But it works :)
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
Compuware sp. z o.o. (registration number KRS 595) is a company registered in Poland whose registered office is at Ul. Dmowskiego 12,80-264 Gdansk Rejestr handlowy KRS 0000000595 Sadu Rejonowego Gdansk-Polnoc w Gdansku VII Wydzial Gospodarczy Kapital zakladowy 1.140.000 zl oplacony gotówka; NIP: 584-20-88-050; REGON: 191352920