
script
fnoodles
这个作者很懒,什么都没留下…
展开
-
工作脚本实例
>>> cat /etc/passwd | grep "^${user}:" | awk -F: '{ print $6 }' >>> bash 首先扩展 "${x##*.}"。在代码中,"$x" 是文件的名称,"${x##.*}" 除去文件中最后句点后文本之外的所有文本...原创 2011-10-11 15:43:11 · 142 阅读 · 0 评论 -
有关shell脚本的一些网站资源
常用的shell函数http://www.intuitive.com/wicked/wicked-cool-shell-script-library.shtml在这里有位大虾提供的资源,好诶http://www.l3jane.net/websvn/wsvn/Factory/trunk/Shell/lib/?rev=2025#a4928e0d2a9c0a7bc89cf27975ac7ad62shel...原创 2011-10-25 22:01:27 · 192 阅读 · 0 评论 -
shell split字符串 实例
文章来源于:http://stackoverflow.com/questions/1617771/splitting-string-into-array $ cat split.sh#!/bin/sh# Script to split fields into tokens# Here is the string where tokens separated by ...原创 2011-12-15 10:52:04 · 252 阅读 · 0 评论