http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-13 08:25:57
#!/bin/csh -f# Script is called loop.argswhile ($#argv) echo $argv shiftend......【阅读全文】
发布时间:2011-10-13 08:23:14
#!/bin/tcsh -f# Scriptname: filecheck# Usage: filecheck filenamealias Usage 'echo " Usage: $0 filename\!*" ; exit 1'alias Error 'echo " Error: \!* "; exit 2'set file=$1if ( $#argv == 0 ) then Usageendifif ( ! -e $file ) then Error "$fi.........【阅读全文】
发布时间:2011-10-13 08:10:04
#!/bin/csh -fif ( ! -e memo ) then echo "memo file non existent" exit 1endifforeach person (anish bob don karl jaye) if ("$person" =~ [Kk]arl) continue mail -s "Party time" $person < memoend......【阅读全文】