Mercurial > ec-dotfiles
view bin/mgren @ 98:9be628347dce
Worst thing about unix: it allows control character and newline in its filename. Added handler to ensure that shit doesn't pass through. Makes things slow but it can't be helped (tm).
author | Edho Prima Arief <edho@myconan.net> |
---|---|
date | Thu, 14 Jul 2011 01:11:18 +0700 |
parents | 94ee419ad047 |
children |
line wrap: on
line source
#!/usr/bin/env ruby TITLE_MAPS={ "otaku no musume-san" => 1 } TITLE_REAL={ 1 => "Otaku no Musume-san" } def get_title end ARGV.each do |file| next unless File.file?(file) and File.readable?(file) end