1 | static L<S> psGetCommands(S psOutput) {
|
2 | L<S> lines = toLines(psOutput); |
3 | S header = lines.get(0); |
4 | L<S> body = dropFirst(lines); |
5 | final int idx = header.indexOf("CMD");
|
6 | ret map(func(S s) { substring(s, idx).trim() }, body);
|
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004979 |
| Snippet name: | psGetCommands - parse output of "ps -aef" |
| Eternal ID of this version: | #1004979/1 |
| Text MD5: | ab266db69b95e88bd63ae903cb21557f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-09-20 19:30:54 |
| Source code size: | 238 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 816 / 802 |
| Referenced in: | [show references] |