#!/bin/bash# Scriptname: ttype# Purpose: set the terminal type# Author: Andy AdminCOLUMNS=60LINES=1PS3="Please enter the terminal type: "select choice in wyse50 vt200 xterm sundo case $REPLY in 1) export TERM=$choice echo "TERM=$choice" b...【阅读全文】
#!/bin/bash# Scriptname: tellme# Using the old-style test commandecho -n "How old are you? "read ageif [ $age -lt 0 -o $age -gt 120 ]then echo "Welcome to our planet! " exit 1 fiif [ $age -ge 0 -a $age -le 12 ] then echo "A child is a gar...【阅读全文】
# 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;; ...【阅读全文】
# This script is called colorsecho -n "Which color do you like? "set color = $<switch ("$color")case bl*: echo I feel $color echo The sky is $color breaksw case red: # Is is red or is it yellow? &nb...【阅读全文】