static L<S> psGetCommands(S psOutput) { L<S> lines = toLines(psOutput); S header = lines.get(0); L<S> body = dropFirst(lines); final int idx = header.indexOf("CMD"); ret map(func(S s) { substring(s, idx).trim() }, body); }
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: | 591 / 568 |
Referenced in: | [show references] |