未調査
makemap $ makemap switches dbtype outfile < infile sample code $ awk '/^[^#]/ {print $2, $1}' /etc/hosts | makemap ... $ awk '/^[^#]/ {print $2, $1}' /etc/hosts localhost ::1 localhost 127.0.0.1 lx.bcnet.ne.jp 192.168.0.5 ws.bcnet.ne.jp 192.168.0.6 mc.bcnet.ne.jp 192.168.0.7 nl.bcnet.ne.jp 192.168.0.8 sv.bcnet.ne.jp 192.168.0.9 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ cf $ sed -e '/^#/d' /etc/hosts ::1 localhost 127.0.0.1 localhost 192.168.0.5 lx.bcnet.ne.jp lx 192.168.0.6 ws.bcnet.ne.jp ws 192.168.0.7 mc.bcnet.ne.jp mc 192.168.0.8 nl.bcnet.ne.jp nl 192.168.0.9 sv.bcnet.ne.jp sv ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ praliases # praliases postmaster:root daemon:root ingres:root toor:root webmaster:root abuse:root decode:root @:@ mailer-daemon:postmaster bin:root games:root nobody:root system:root uucp:root manager:root dumper:root ~~~~~~~~~~~~ cf # makemap -u hash aliases.db postmaster root daemon root ingres root toor root webmaster root abuse root decode root @ @ mailer-daemon postmaster bin root games root nobody root system root uucp root manager root dumper root
何か加工すると 良いかもしれません。
にゃんたろう 拝!
2007年12月 4日 (火) 23:13:42 JST 作成