2009年6月5日
摘要: until [ -z "$1" -a -z "$2" ]dosed -ir '/InputDevice/,/EndSection/{s/'"$1"'.*/'"$1"'" "'"$2"'"/}' /etc/X11/xorg.confshift 2doneexit 0因为sed是一个非交互性编辑器,必须通过行号或正则表达式指定要改变的文本行调用sed的三种方式:在命令行键入命令;将sed命令插入脚本文... 阅读全文
posted @ 2009-06-05 14:04 清水湾 阅读(968) 评论(0) 推荐(0)