Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
const fs = require("fs");
|
||||
const readline = require("readline");
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
if (!args.length) {
|
||||
console.error("must supply file name");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const fname = args[0];
|
||||
|
||||
const readInterface = readline.createInterface({
|
||||
input: fs.createReadStream(fname),
|
||||
console: false,
|
||||
});
|
||||
|
||||
readInterface.on("line", (line) => {
|
||||
const fields = line.split(/\s+/);
|
||||
if (+fields[fields.length - 1] > 6) {
|
||||
console.log(line);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue