summaryrefslogtreecommitdiff
path: root/tests/cat.ts
blob: bede0d43224dd626235ab3df82eee719e4a84e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { stdout, open, copy, args } from "deno";

async function main() {
  for (let i = 1; i < args.length; i++) {
    let filename = args[i];
    let file = await open(filename);
    await copy(stdout, file);
  }
}

main();