Chinaunix首页 | 论坛 | 博客
  • 博客访问: 311884
  • 博文数量: 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 14:48:41

#!/bin/ksh# Scriptname: do_increment# Using the return Command)function increment {   typeset sum      # sum is a local variable.   (( sum = $1 + 1 ))   return $sum      # Return the value of sum to the script.}.........【阅读全文】

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

发布时间:2011-10-13 14:43:56

# Program name: ttype# Purpose: set the terminal type# Author: Andy AdminCOLUMNS=60LINES=1PS3="Please enter the terminal type: "select choice in wyse50 vt200 vt100 sundo  case $REPLY in 1)  export TERM=$choice  print "TERM=$choice"  break;; .........【阅读全文】

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

发布时间:2011-10-13 14:35:20

#!/bin/ksh# Scriptname: speller# Purpose: Check and fix spelling errors in a file# exec < tmp         # Opens the tmp file while read line    # Read from the tmp filedo print $line print -n "Is this word correct? [Y/N] "&.........【阅读全文】

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

发布时间:2011-10-13 14:05:04

#!/bin/ksh# Program name: numberit# Put line numbers on all lines of memoif (( $# < 1 ))then print "Usage: $0 filename " >&2 exit 1fiinteger count=1              # Initialize countcat $1 | while read line &nbs.........【阅读全文】

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

发布时间:2011-10-13 12:47:39

#!/bin/ksh# Scriptname: doit0set joe mary tom samshift print $*set $(date)print $*shift 5print $*shift 2......【阅读全文】

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

登录 注册