Created
April 20, 2022 15:38
-
-
Save dkelosky/84eb9611cf87c76098d621d885997fb6 to your computer and use it in GitHub Desktop.
index.mjs row parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { zowe } from "./zowe.mjs"; | |
const resp = zowe("jobs list jobs --rff jobid jobname status", { silent: true}); | |
const rows = resp.split(/\r?\n/); | |
rows.forEach((rows) => { | |
const cols = rows.split(/\s+/); | |
console.log(`jobid: ${cols[0]} jobname: ${cols[1]} status: ${cols[2]}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment