http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-12 17:19:14
#/bin/sh# Script is called runit.# IFS is the internal field separator and defaults to # spaces, tabs, and newlines. # In this script it is changed to a colon.names=Tom:Dick:Harry:JohnOLDIFS="$IFS" # Save the original value of IFSIFS=":"for persons in $namesdo echo Hi $p.........【阅读全文】
发布时间:2011-10-12 17:16:45
#!/bin/sh# Program name: numberit# Put line numbers on all lines of memoif [ $# -lt 1 ] then echo "Usage: $0 filename " >&2 exit 1ficount=1 # .........【阅读全文】
发布时间:2011-10-12 14:53:12
# Name: bigfiles# Purpose: Use the find command to find any files in the root # partition that have not been modified within the past n (any # number within 30 days) days and are larger than 20 blocks # (512-byte blocks)if [ $# -ne 2 ]then echo "Usage: $0 mdays size " 1.........【阅读全文】