Chinaunix首页 | 论坛 | 博客
  • 博客访问: 334102
  • 博文数量: 214
  • 博客积分: 4258
  • 博客等级: 上校
  • 技术积分: 2021
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-02 09:16
个人简介

http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net

文章分类

全部博文(214)

文章存档

2018年(16)

2015年(1)

2014年(2)

2012年(22)

2011年(173)

发布时间: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.........【阅读全文】

阅读(279) | 评论(0) | 转发(0)

发布时间: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: ".........【阅读全文】

阅读(221) | 评论(0) | 转发(0)

发布时间:2011-10-13 20:19:47

echo  "Are you o.k. (y/n) ?"read answerif [ "$answer" = Y -o "$answer" = y ] then                        echo  "Glad to hear it."fiif [ $answer = Y -o "$answer" = y ] [.........【阅读全文】

阅读(189) | 评论(0) | 转发(0)

发布时间: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 ))         .........【阅读全文】

阅读(220) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(254) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册