摘要:
1 sed编辑器 在命令行定义编辑器命令 [root@iZbp11f8g5h7oozejqy6k6Z ~]# echo "this is a test" | sed 's/test/big test/' this is a big test [root@iZbp11f8g5h7oozejqy6k6Z 阅读全文
摘要:
嵌套循环处理文件数据 #! /bin/bash IFS=$'\n' for entry in $(cat /etc/passwd) do echo "Values in $entry" IFS=':' for value in $entry do echo $value done done Valu 阅读全文