Sat, 17 Dec 2011 17:08:33 +0000
Initial commit
0 | 1 | #!/usr/bin/env lua5.1 |
2 | ||
3 | local yaml = require "yaml"; | |
4 | ||
5 | for i, fn in ipairs(arg) do | |
6 | local f = assert(io.open(fn, "r")); | |
7 | print(yaml.dump(yaml.load(f:read("*a")))); | |
8 | f:close(); | |
9 | end | |
10 |