摘要: awk '{printf "host "$3" {\n"" hardware ethernet "$1";\n"" fixed-address "$2";\n""}\n"}' youfile效果:host D2 { hardware ethernet 192.168.0.65; fixed-address 00:26:18:08:49:8B;}host F5 { hardware ether... 阅读全文
posted @ 2010-05-31 15:47 waynechen 阅读(963) 评论(0) 推荐(1) 编辑