UNPKG

354 BJavaScriptView Raw
1#!/usr/bin/env node
2
3var cli = require('cli');
4
5var output_file = function (file) {
6 cli.withInput(file, function (line, sep, eof) {
7 if (!eof) {
8 cli.output(line + sep);
9 } else if (cli.args.length) {
10 output_file(cli.args.shift());
11 }
12 });
13};
14
15if (cli.args.length) {
16 output_file(cli.args.shift());
17}
\No newline at end of file