linux删除文件
怎样使用shell脚本修改文件:
/dev/sdb1 /opt/storea ext3 defaults 0 0
/dev/sdb2 /opt/storeb ext3 defaults 0 0
/dev/sdb1 /opt/storea ext3 defaults 0 0
/dev/sdb2 /opt/storeb ext3 defaults 0 0
修改成:
/dev/sdb1 /opt/storea ext3 defaults 0 0
/dev/sdb2 /opt/storeb ext3 defaults 0 0
/dev/sdb1 /opt/storea ext3 defaults 0 0
/dev/sdb2 /opt/storeb ext3 defaults 0 0
/dev/sdb1 /opt/storea ext3 defaults 0 0
/dev/sdb2 /opt/storeb ext3 defaults 0 0
修改成:
/dev/sdb1 /opt/storea ext3 defaults 0 0
/dev/sdb2 /opt/storeb ext3 defaults 0 0
作者: greenandtree 发布时间: 2011-06-05
- awk '!a[$1]++' file
- /dev/sdb1 /opt/storea ext3 defaults 0 0
- /dev/sdb2 /opt/storeb ext3 defaults 0 0
作者: zooyo 发布时间: 2011-06-05
- sort -u urfile
作者: Shell_HAT 发布时间: 2011-06-05