摘要: 数据:test.txt:f1:f2:f3:0#1Shell:#!/bin/bashwhile read linedoecho $lineresult1=$(echo $line|awk -F ':' '{print $4}' )echo $result1echo "1:"${result1}"tes... 阅读全文
posted @ 2015-01-21 14:19 沧海一滴 阅读(4088) 评论(0) 推荐(0) 编辑
摘要: sed的语法格式:sed [option] {sed-command} {input-file}sed在正常情况下,将处理的行读入模式空间(pattern space),脚本中的“sed-command(sed命令)”就一条接着一条进行处理,知道脚本执行完毕。然后该行呗输出,模式(pattern s... 阅读全文
posted @ 2015-01-21 14:09 沧海一滴 阅读(584) 评论(0) 推荐(0) 编辑
摘要: shell基础1:文件安全与权限http://bbs.chinaunix.net/forum/viewtopic.php?t=434579&highlight=wingger附:Linux的用户和用户组管理http://bbs.chinaunix.net/forum/viewtopic.php?t=... 阅读全文
posted @ 2015-01-21 12:48 沧海一滴 阅读(216) 评论(0) 推荐(0) 编辑