http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
发布时间:2011-10-13 21:18:15
#!/bin/bash# Using the old style test command# filename: perm_checkfile=./testingif [ -d $file ] then echo "$file is a directory" elif [ -f $file ]then if [ -r $file -a -w $file -a -x $file ] then &nb.........【阅读全文】
发布时间:2011-10-13 21:15:57
#!/bin/bash# Scriptname: nosyecho -e "Are you happy? \c"read answerecho "$answer is the right response."echo -e "What is your full name? \c"read first middle lastecho "Hello $first"echo -n "Where do you work? "readecho I guess $REPLY keeps you busy!read -p "Enter your job title: ".........【阅读全文】
发布时间:2011-10-13 18:29:02
# 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 (( $# != 2 )) .........【阅读全文】
发布时间:2011-10-13 17:51:13
# .bash_profile# The file is sourced by bash only when the user logs on. # Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi # User-specific environment and startup programs PATH=$PATH:$HOME/binENV=$HOME/.bashrc # or BASH_EN.........【阅读全文】