发布时间:2016-07-08 10:41:34
sed:cat /etc/passwd.bak | sed '2, 5c No 2-5 number' 将2-5行内容替换“No 2-5 number”sed -i '$a # This is a test' /etc/passwd.bak 在最后一行下新增一行“# This is a test”cat /etc/passwd | awk 'BEGIN{FS=":"} $3 < 10 {print $1 "\t " $3}.........【阅读全文】
阅读(629) | 评论(0) | 转发(0)