#!/bin/lua -- under construction -- plan9 wiki translater -- translate dir name in href to lower case -- href="..." lower = string.lower gsub = string.gsub if #arg ~= 0 then io.input(arg[1]) end function trans(str) return lower(str) end p = "" for line in io.lines() do line = gsub(line,'href="[^"]+"',trans) print(line) end