Bourne Shell及shell编程
|
|
|
- 睿 祁
- 6 years ago
- Views:
Transcription
1 Bourne Shell shell javalee LINUX April URL: ftp://ftp.dlut.edu.cn/pub/people/albin/ : Bourne Shell Bourne Shell shell.shell.shell (shell ).shell script.shell 1.shell Stephen Bourne Bell man sh UNIX (1)shell /etc/passwd $ /etc/prole $HOME/.prole (2)shell -n shell script shell script -x -a Tag all variables for export -c "string" strings -e -f shell 1
2 -h locate and remember functions as dend -i -k -r -s -t (shell exits) -u -v verbose, shell -e -i. (3) shell(restircted Shell) sh -r /bin/rsh cd, PATH, rsh sh,rsh vi more shell, rsh (4)set shell $ set shell - + UNIX a,e,f,h,k,n,u,v x / set -xv set -tu ; echo $- shell (5).prole PATH=$PATH:/usr/loacl/bin; export PATH (6)shell CDPATH cd HOME IFS /etc/passwd Internal Field Separator, tab 2
3 MAIL /var/mail/$username mail PATH PS1 PS2 ($) (> ) TERM vt100,ansi,vt200,xterm $PS1="test:";export PS1 test: PS1="\$";export PS1 $echo $MAIL /var/mail/username (7) $ shell $var # & csh` * 0 (DOS.) $- set shell $! $# shell script $* shell script $@ $? $0 shell $n (n:1-) $$ (Process Identier Number, PID) >le <le `` >>ile lename=`basename /usr/local/bin/t append $echo "$HOME $PATH" /home/hbwork /opt/kde/bin:/usr/local/bin:/bin:/usr/bin:/usr/x11r6 /bin: $echo '$HOME $PATH' $HOME $PATH $echo \$HOME $PATH $HOME /opt/kde/bin:/usr/local/bin:/bin:/usr/bin:/usr/x11r6/bin:/h ome/hbw ork/bin $dir=ls 3
4 $$dir $alias dir ls $dir ls > lelist ls >> lelist wc -l < lelist wc -l lelist sleep 5; echo 5 seconds reaches; ls -l ps ax egrep inetd nd / -name core -exec rm {} \; & lename=`date "+%Y%m%d"`.log 2. shell $HOME,cd $HOME, Bourne Shell.. shell script.. ( shell ) (1) $ COUNT=1 $ NAME="He Binwu" UNIX shell $ $ echo $HOME /home/hbwork $ WEEK=Satur $ echo Today is $WEEKday Today is $echo Today is ${WEEK}day Today is Saturday Shell (Linux Shell/bash!) $ X=$Y Y=y $ echo $X 4
5 y $ Z=z Y=$Z $ echo $Y $ unset $ Z=hello $ echo $Z hello $ unset Z $ echo $Z $ Bourne Shell. Bourne Shell ${variable:-defaultvalue} $ echo Hello $UNAME Hello $ echo Hello ${UNAME:-there} Hello there $ echo $UNAME # $ UNAME=hbwork $ echo Hello ${UNAME:-there} Hello hbwork $. ${variable:=value} $ echo Hello $UNAME Hello $ echo Hello ${UNAME:=there} Hello there 5
6 $ echo $UNAME # there $. $USERDIR=${$MYDIR:-`pwd`}. ${variable:+value}. ${variable:?value} $ UNAME= $ echo ${UNAME:?"UNAME has not been set"} UNAME: UNAME has not been set $ echo ${UNAME:?} UNAME: parameter null or not set (2) (Shell ) shell script $1..$9 $0. reanly variable. export shell shell shell subshell. Bourne Sh ell shell export subshell PS1 export shell $ PS1=`hostname`$ peony$sh $ echo $PS1 $ <- $ exit peony$export PS1 peony$sh peony$ echo $PS1 peony$ <- peony$ 3.Shell Script UNIX 6
7 (1) Shell $ls -R / grep myname more $ cd /usr/yourname; ls * cpio -o > /dev/rmt/0h $ cat > backup.sh cd /home/hbwork ls * cpio -o > /dev/rmt/0h ^D $ sh backup.sh $ chmod +x backup.sh $./backup.sh shell script (2)shell shell sh ell script. shell back up.sh cd $WORKDIR ls * cpio -o > /dev/rmt/0h. Shell #. shell expr expr integer operator integer operator + - * / %, * \, $expr 4 \* 5 20 $int=`expr 5 + 7` $echo $int 12 7
8 (3)Shell, (read) restoreall.sh backup.sh $cat > restoreall.sh cd $WORKDIR cpio -i < /dev/rmt/0h ^D restore1.sh: #restore1 --program to restore a single le cd $WORKDIR cpio -i $i < /dev/rmt/0h $restore1 le1 restoreany : #restoreany --program to restore a single le cd $WORKDIR cpio -i $* < /dev/rmt/0h $ restoreany le1 le2 le3 (4). if-, : if _1 _4 _2 _3 if- $?, _1 _2 _3,_4. unload:, cd $1 #! ls -a cpio -o > /dev/rmt/0h rm -rf * : 8
9 #, if ls -a cpio -o > /dev/rmt/0h rm -rf *. if--else if _1 _2 else _3 : shell,.,. test : test conditions test : a. b. c., d., and/or, a. : shell str1 = str2 str1!= str2, -n string string ( ) -z string string string string : $ str1=abcd # $ test $str1=abcd $ echo $? 0 $ str1="abcd " $ test $str1=abcd $ echo $? 1 9
10 Note: test,, shell, shell. : $ str1=" " $ test $str1 $ echo $? 1 $ test "$str1" $ echo $? 0 $ test -n $str1 test: argument expected $ test -n "$str1" $ echo $? 0 $ b. : test expr,,expr,test int1 -eq int2 int1 -ne int2?? int1 -gt int2 int1 > int2? int1 -ge int2 int1 >= int2? int1 -lt int2 int1 < int2? int1 -le int2 int1 <= int2? : $ int1=1234 $ int2=01234 $ test $int1 -eq $int2 $ echo $? 0 c. : -r lename lename? 10
11 -w lename lename? -x lename lename? -f lename lename? -d lename lename? -c lename lename? -b lename lename? -s lename lename? -t fnumb fnumb( 1)? d.,! : $ cat /dev/null > empty $ test -r empty $ echo $? 0 $ test -s empty 1 $ test! -s empty $ echo $? 0 e. -a And -o Or : $ test -r empty -a -s empty $ echo $? 1 f. test test shell, shell, Bourne Shell test : test : $ int1=4 $ [ $int1 -gt 2 ] $ echo $? 0 : unload, test #!/bin/sh 11
12 #unload - program to backup and remove les #syntax: unload directory #check arguments if [ $# -ne 1 ] echo "usage: $0 directory" exit 1 #check for valid directory name if [! -d "$1" ] echo "$1 is not a directory" exit 2 cd $1 ls -a cpio -o > /dev/rmt/0h if [ $? -eq 0 ] rm -rf * else echo "A problem has occured in creating backup" echo "The directory will not be ereased" echo "Please check the backup device" exit 3 # end of unload exit, exit :, g. if elif if else if 12
13 else if : elif if elif elif elif,,. /******** *********/ : Bourne Shell Shell (2) h. read read var1 var2... varn read $ read var1 var2 var3 Hello my friends 13
14 $ echo $var1 $var2 $var3 Hello my friends $ echo $var1 Hello $ read var1 var2 var3 Hello my dear friends $ echo $var3 dear friends $ read var1 var2 var3 Hello friends $ echo $var3 $ <- <- var3 shell script read... #echo -n message echo -n "Do you want to continue: Y or N" read ANSWER if [ $ANSWER=N -o $ANSWER=n ] exit i. case elif- if- if [ variable1 = value1 ] elif [ variable1 = value2 ] elif [ variable1 = value3 ] 14
15 case case value in pattern1) ;; pattern2) ;;... patternn) ; esac * case case shell script #Display a menu echo _ echo "1 Restore" echo "2 Backup" echo "3 Unload" echo #Read and excute the user's selection echo -n "Enter Choice:" read CHOICE case "$CHOICE" in 1) echo "Restore";; 2) echo "Backup";; 3) echo "Unload";; *) echo "Sorry $CHOICE is not a valid choice exit 1 esac * case pattern1 pattern2 ) ;; 15
16 case "$CHOICE" in 1 R) echo "Restore";; 2 B) echo "Backup";; 3 U) echo "Unload";; *) echo "Sorry $CHOICE is not a valid choice esac exit 1 (5) <1> while : while ne #!/bin/sh # #Filename: square.sh int=1 while [ $int -le 5 ] sq=`expr $int \* $int` echo $sq int=`expr $int + 1` ne echo "Job completed" $ sh square.sh
17 Job completed <2> until until... ne until 1-5 #!/bin/sh int=1 until [ $int -gt 5 ] sq=`expr $int \* $int` echo $sq int=`expr $int + 1` ne echo "Job completed" <3> shift $* shell script shift shift $2->$1, $3->$2. $1 #!/bin/sh # #Filename: shifter 17
18 main" until [ $# -eq 0 ] echo "Argument is $1 and `expr $# - 1` argument(s) re shift ne $ shifter Argument is 1 and 3 argument(s) remain Argument is 2 and 2 argument(s) remain Argument is 3 and 1 argument(s) remain Argument is 4 and 0 argument(s) remain $ shift $#1 u ntil shell script: #!/bin/sh # sumints - a program to sum a series of integers # if [ $# -eq 0 ] echo "Usage: sumints integer list" exit 1 sum=0 until [ $# -eq 0 ] sum=`expr $sum + $1` shift ne echo $sum $ sh sumints $ 18
19 shift Bourne Shell $1~$9, shift. shift shift 3 <4>. for for var in arg1 arg2... argn... ne $ for letter in a b c d e; echo $letter;ne a b c d e $ for i in * if [ -f $i ] echo "$i is a le" elif [ -d $i ] echo "$i is a directory" ne #!/bin/sh 19
20 sum=0 for INT in $* sum=`expr $sum + $INT` ne echo $sum <6> break continue break continue shell break continue true false UNIX true 0 false # break while true ne... until false, until false... ne shell script continue,break case #!/bin/sh 20
21 # Interactive program to restore, backup, or unload # a directory echo "Welcome to the menu driven Archive program" while true # Display a Menu echo echo "Make a Choice from the Menu below" echo _ echo "1 Restore Archive" echo "2 Backup directory" echo "3 Unload directory" echo "4 Quit" echo # Read the user's selection echo -n "Enter Choice: " read CHOICE ry case $CHOICE in [1-3] ) echo # Read and validate the name of the directo echo -n "What directory you want? " read WORKDIR y" if [! -d "$WORKDIR" ] echo "Sorry, $WORKDIR is not a director continue ectory # Make the directory the current working dir cd $WORKDIR;; 4) :;; # : *) echo "Sorry, $CHOICE is not a valid choice" 21
22 esac continue case "$CHOICE" in 1) echo "Restoring..." cpio -i </dev/rmt/0h;; 2) echo "Archiving..." ls cpio -o >/dev/rmt/0h;; 3) echo "Unloading..." ls cpio -o >/dev/rmt/0h;; esac 4) echo "Quitting" break;; #Check for cpio errors if [ $? -ne 0 ] echo "A problem has occurred during the process" if [ $CHOICE = 3 ] echo "The directory will not be erased" echo "Please check the device and try again" continue else if [ $CHOICE = 3 ] rm * ne (6) shell (subroutine), 22
23 funcname() {... ; # } shell # start program setup () { list ; } _data () { list ; } cleanup () { list ; } errors () { list ; } setup _data cleanup # end program.. ( ), iscontinue() 23
24 { while true echo -n "Continue?(Y/N)" read ANSWER } ne case $ANSWER in [Yy]) return 0;; [Nn]) return 1;; *) echo "Answer Y or N";; esac shell iscontinue if iscontinue continue else break ** shell shell she ll sh ell shell shell shell shell( shell) Z $ dir dir: not found $ dir () { ls -l ;} $ dir total rw-r--r-- 1 hbwork 100 Nov 10 23:16 c -rw-r--r-- 1 hbwork Nov 10 23:47 ns40cs.zip -rw-r--r-- 1 hbwork Nov 10 23:30 ns840usr.pdf -rw-r--r-- 1 hbwork Sep radsol21b6.tar. -rw-r--r-- 1 hbwork 7526 Nov 10 23:47 wget-log 24
25 -rw-r--r-- 1 hbwork 1748 Nov 13 21:51 wget-log.1 $ unset dir $ dir () { > echo "Permission Link Owner Group File_SZ LastAccess FileName" > echo " " > ls -l $*; > } ame $ dir Permission Link Owner Group File_SZ LastAccess FileN total rw-r--r-- 1 hbwork 100 Nov 10 23:16 c -rw-r--r-- 1 hbwork Nov 10 23:47 ns40cs.zip -rw-r--r-- 1 hbwork Nov 10 23:30 ns840usr.pdf ar.z -rw-r--r-- 1 hbwork Sep radsol21b6.t -rw-r--r-- 1 hbwork 7526 Nov 10 23:47 wget-log -rw-r--r-- 1 hbwork 1748 Nov 13 21:51 wget-log.1 shell script shell shell shell (.) shell shell shell shell script, (.).prole login $..prole (csh. source ). (7) And/Or <1> And,, 1 && 2 25
26 rm $TEMPDIR/* && echo "File successfully removed" if rm $TEMPDIR/* echo "File successfully removed" <2>Or, AND rm $TEMPDIR/* echo "File not removed" if rm $TEMPDIR/* else echo "File not removed" <3> 1 && 2 && 3 1, && 2 comamnd (8) getopts unix UNIX -options parameters getopts option_string variable getopts (man getopts). 26
27 #newdate if [ $# -lt 1 ] date else while getopts mdydhmstjjwahr OPTION case $OPTION in m) date '+%m ';; # Month of Year d) date '+%d ';; # Day of Month y) date '+%y ';; # Year D) date '+%D ';; # MM/DD/YY H) date '+%H ';; # Hour M) date '+%M ';; # Minute S) date '+%S ';; # Second T) date '+%T ';; # HH:MM:SS j) date '+%j ';; # day of year J) date '+%y%j ';;# 5 digit Julian date w) date '+%w ';; # Day of the Week a) date '+%a ';; # Day abbreviation h) date '+%h ';; # Month abbreviation r) date '+%r ';; # AM-PM time \?) echo "Invalid option $OPTION";; esac ne $ newdate -J $ newdate -a -h -d Mon Jan 31 $ newdate -ahd Mon Jan 31 $ # Syntax: duplicate [-c integer] [-v] lename 27
28 # where integer is the number of duplicate copies # and -v is the verbose option COPIES=1 VERBOSE=N while getopts vc: OPTION case $OPTION in c) COPIES=$OPTARG;; v) VERBOSE=Y;; \?) echo "Illegal Option" exit 1;; esac ne if [ $OPTIND -gt $# ] echo "No le name specied" exit 2 shift `expr $OPTIND -1` FILE=$1 COPY=0 while [ $COPIES -gt $COPY ] COPY=`expr $COPY + 1` cp $FILE ${FILE}${COPY} if [ VERBOSE = Y ] echo ${FILE}${COPY} ne $ duplicate -v lea lea1 $ duplicate -c 3 -v leb 28
29 leb1 leb2 leb3 4. Shell shell shell ( ) (1) shell shell shell shell. IFS shell IFS $ IFS=":" $ echo:hello:my:friend Hello my Friend (2) #Directory and Prompt change program #Syntax: chdir directory if [! -d "$1" ] echo "$1 is not a directory" exit 1 cd $1 PS1=`pwd`$ export PS1 $ chdir /usr/home/teresa $ 29
30 shell shell shell.prole.persfuncs #Personal function le persfuncs chdir() { #Directory and Prompt change program #Syntax: chdir directory if [! -d "$1" ] echo "$1 is not a directory" exit 1 cd $1 PS1=`pwd`$ export PS1; } $..persfuncs $ chdir temp /home/hbbwork/temp$.prole..persfuncs.persfuncs. bash/tcsh 5. shell (1)shell -x (2) 30
31 shell {com mand_list;} shell shell shel l shell $ NUMBER=2 $ (A=2;B=2;NUMBER=`expr $A + $B`; echo $NUMBER) 4 $ echo $NUMBER 2 $ { A=2;B=2;NUMBER=`expr $A + $B`; echo $NUMBER; } 4 $ echo $NUMBER 4 Bourne Shell, shell shell script Korn Shell, csh script OS script UNIX SHELL script shell script ( ) shell. PERL script PERL shell, awk, sed, grep Perl By Examples" PERL 31
Microsoft Word - linux命令及建议.doc
Linux 操 作 系 统 命 令 集 1 基 本 命 令 查 看 系 统 信 息 : uname -a 修 改 密 码 : passwd 退 出 : logout(exit) 获 取 帮 助 : man commands 2 文 件 和 目 录 命 令 显 示 当 前 工 作 目 录 : pwd 改 变 所 在 目 录 : cd cd - 切 换 到 上 一 次 使 用 的 目 录 cd 切 换
C/C++ - 字符输入输出和字符确认
C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,
投影片 1
類 Linux BASH shell (, VBird) 2008/03/29 Linux 1 Bash Shell 令 vi vim 料流 令 / 令 理 (job control) 例 2008/03/29 Linux 2 Bash shell 2008/03/29 Linux 3 什 Shell Shell shell 2008/03/29 Linux 4 什 Shell Linux shell
ebook35-2
2 2.1 Linux login Login: < > Password: < > Linux r o o t l o g o u t 2.2 Linux X Window Linux Linux Bourne ( b s h ) C ( c s h ) Korn ( k s h ) Bourne Steven Bourne UNIX Bourne bash Bourne C Bill Joy Bourne
像 客 样 使 命令行 徐 东
像 客 样 使 命令行 徐 东 1 1.1................................ 1 1.2................................. 3 1.3............................. 4 1.3.1 Linux............................ 5 1.3.2 macos............................
ebook70-5
5 / 5.1 L i n u x L i n u x X L i n u x 5.1.1 touch t o u c h t o u c h G N U t o u c h # touch newfile # ls -l newfile - r w - r - - r - - 1 bball users 0 Jan 5 12 : 40 n e w f i l e t o u c h 0 # > newfile2
PowerPoint 演示文稿
Linux 操 作 系 统 基 础 介 绍 课 程 目 标 及 要 求 了 解 Linux 操 作 系 统 的 登 入 方 式 掌 握 常 用 命 令 的 基 本 用 法 能 够 熟 练 在 各 个 目 录 转 换 Outline 1. Linux 操 作 系 统 简 介 2. Linux 操 作 系 统 的 登 录 3. Linux 操 作 系 统 的 目 录 结 构 4. 常 用 命 令 5.
本文由筱驀釹贡献
本 文 由 筱 驀 釹 贡 献 ppt 文 档 可 能 在 WAP 端 浏 览 体 验 不 佳 建 议 您 优 先 选 择 TXT, 或 下 载 源 文 件 到 本 机 查 看 Linux 操 作 系 统 Linux 操 作 系 统 第 一 部 分 介 绍 与 安 装 Linux 的 由 来 : Linux 的 由 来 : 的 由 来 Linus Torvalds 1.Linux 的 版 本 1.Linux
I B :
I-2 055702B : 2006 5 1 2006 5 8 2006 5 10 1 1 Level 1 myls / $ ls -FC /foo dir1/ le1 dir2/ le2 $ myls /foo dir1/ dir2/ le1 le2 Level 2 (myupper) (mymv). % ls le1.txt le2.tex le3.dat % myuppper le1.txt
Unix®t Œ fi z.PDF
7 9 8 0 $ man umount newfs $ man -a intro $ man -a chown ORDER=C:ADM:ADMN:ADMP:PADM:F:HW 8 1 # catman % ps aux grep chavez chavez 8684 89.5 9.627680 5280? R N 85:26 /home/j90/l988 root 10008 10.0 0.8 1408
Microsoft Word - PS2_linux_guide_cn.doc
Linux For $ONY PlayStatioin2 Unofficall General Guide Language: Simplified Chinese First Write By Beter Hans v0.1 Mail: [email protected] Version: 0.1 本 人 是 菜 鸟 + 小 白 欢 迎 指 正 错 误 之 处, 如 果 您 有 其 他 使 用 心 得
ebook15-C
C 1 1.1 l s ( 1 ) - i i 4. 14 - d $ l s -ldi /etc/. /etc/.. - i i 3077 drwxr-sr-x 7 bin 2048 Aug 5 20:12 /etc/./ 2 drwxr-xr-x 13 root 512 Aug 5 20:11 /etc/../ $ls -ldi /. /..... i 2 2 drwxr-xr-x 13 root
WWW PHP
WWW PHP 2003 1 2 function function_name (parameter 1, parameter 2, parameter n ) statement list function_name sin, Sin, SIN parameter 1, parameter 2, parameter n 0 1 1 PHP HTML 3 function strcat ($left,
ebook 99-1
s h e l l 1 setuid chown c h g r p umask ( ) 1) 2) 3) s h e l l 1) 2) 3) 1.1 i ls -l 2 shell total 4232 - r w x r- x r- x 9 9 r w x r- x r- x r w x 1 root root r o o t ( r o o t ) 3578 K Oct 14 04:44 dmesg
C/C++ - 函数
C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh
LSC操作说明
1 C H R I S T A L P H A 1-4 LSC 型 Part. No. 102041 A L P H A 2-4 LSC 型 Part. No. 10204 冷 冻 干 燥 机 操 作 说 明 新 研 制 的 LSC-8 控 制 器, 具 备 图 形 显 示 功 能, 能 以 数 据 表 形 式 显 示 参 数, 并 可 选 配 控 制 软 件 LSC-8 1/4 VGA 大 屏 幕
数据结构与算法 - Python基础
Python 教材及课件 课件及作业见网址 xpzhang.me 1 1. Python 2. 3. (list) (tuple) 4. (dict) (set) 5. 6. 7. 2 Python Python 3 Python 4 Python 1, 100, -8080, 0,... 0x 0-9, a-f 0 xff00, 0 xa432bf 5 1.24, 3.14, -9.80,...
電子商業伺服器管理(終極版).doc
2 3 4 5 Chinese Linux Documentation Project / 6 7 8 9 10 #!/bin/sh # # named This shell script takes care of starting and stopping # named (BIND DNS server). # # Source function library.. /etc/rc.d/init.d/functions
Learn_Perl 3-02.pdf
2 2. 1 h e l l o h e l l o 23 2 4 2.2 2.2.1 2.2.2 d o u b l e 1 e - 1 0 0 1 e 1 0 0 i n t e g e r 2 5 1.25 2.000 3.0 7.25e45 # 7.25 10 45-6.5e24 # 6.5 10 24 # -12e-24 # 12 10-24 # -1.2E-23 # -- E 2.2.3
Microsoft Word - 第3章.doc
Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck
Microsoft PowerPoint - 97-1.ppt [相容模式]
單 車 雙 載 站 火 箭 筒 摔 死 97-1-1 1 聯 合 報 記 者 唐 秀 麗 / 嘉 義 市 報 導 2008.04.27 07:47 pm 青 少 年 近 年 流 行 跨 站 在 俗 稱 火 箭 筒 的 腳 踏 車 後 輪 橫 槓 上, 給 同 學 或 友 人 搭 載, 一 旦 摔 倒 可 能 造 成 頭 部 重 創 ; 嘉 義 市 一 名 高 二 林 姓 少 女, 就 因 跨 站 火
Microsoft Word - 國文.doc
公文 橫 13 格 直 22 格 橫線 是實線 字體不可壓在線上 直線 是虛線 字體壓在線上沒關係 字體大小略分為 3 種 最大 字佔滿格子 紅字 中等 一般大小 字的上下左右還有一些空間 藍字 最小 一格之內寫兩字 綠字 表示您寫的內容 也有某位老師說 字體根本不用分大小 那不是重點 但我個人覺得 呈現出來 版面會很奇怪 所 以不敢冒險聽他的 注意用字 保存 年 限保密 期 限 不要寫成保存期限或是保密年限
四川省普通高等学校
四 川 省 普 通 高 等 学 校 计 算 机 应 用 知 识 和 能 力 等 级 考 试 考 试 大 纲 (2013 年 试 行 版 ) 四 川 省 教 育 厅 计 算 机 等 级 考 试 中 心 2013 年 1 月 目 录 一 级 考 试 大 纲 1 二 级 考 试 大 纲 6 程 序 设 计 公 共 基 础 知 识 6 BASIC 语 言 程 序 设 计 (Visual Basic) 9
CC213
: (Ken-Yi Lee), E-mail: [email protected] 177 [P179] (1) - [P181] [P182] (2) - for [P183] (3) - switch [P184] [P187] [P189] [P194] 178 [ ]; : : int var; : int var[3]; var 2293620 var[0] var[1] 2293620
ebook8-30
3 0 C C C C C C++ C + + C++ GNU C/C++ GNU egcs UNIX shell s h e l l g a w k P e r l U N I X I / O UNIX shell awk P e r l U N I X C C C C C C U N I X 30.1 C C U N I X 70 C C U N I X U N I X U N I X C Dennis
资源管理软件TORQUE与作业调度软件Maui的安装、设置及使用
TORQUE Maui [email protected] 2008 1 1 TORQUE 2 1.1 TORQUE........................... 2 1.2 TORQUE...................... 2 1.3 TORQUE.......................... 4 1.4 TORQUE........................... 4
國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表... 46 論 文 題 目 申 報 暨 指 導 教 授... 47 表 12 國 立 政 治 大 學 碩 博 士 班 論
國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 一 教 育 學 系 簡 介... 1 ( 一 ) 成 立 時 間... 1 ( 二 ) 教 育 目 標 與 發 展 方 向... 1 ( 三 ) 授 課 師 資... 2 ( 四 ) 行 政 人 員... 3 ( 五 ) 核 心 能 力 與 課 程 規 劃... 3 ( 六 ) 空 間 環 境... 12 ( 七 )
Linux操作系统使用
Linux vi shell Linux Linux Linux 5 UNIX time-stamp UNICS Sep 1969... UNIX Time- Sharing System First Edition(V1) Nov 3, 1971 FreeBSD 5.1 Jun 9,2003 BSD/OS 5.0 (BSDI) May 2,2003... V6 May 1976 BSD 1977...
软件测试(TA07)第一学期考试
一 判 断 题 ( 每 题 1 分, 正 确 的, 错 误 的,20 道 ) 1. 软 件 测 试 按 照 测 试 过 程 分 类 为 黑 盒 白 盒 测 试 ( ) 2. 在 设 计 测 试 用 例 时, 应 包 括 合 理 的 输 入 条 件 和 不 合 理 的 输 入 条 件 ( ) 3. 集 成 测 试 计 划 在 需 求 分 析 阶 段 末 提 交 ( ) 4. 单 元 测 试 属 于 动
科学计算的语言-FORTRAN95
科 学 计 算 的 语 言 -FORTRAN95 目 录 第 一 篇 闲 话 第 1 章 目 的 是 计 算 第 2 章 FORTRAN95 如 何 描 述 计 算 第 3 章 FORTRAN 的 编 译 系 统 第 二 篇 计 算 的 叙 述 第 4 章 FORTRAN95 语 言 的 形 貌 第 5 章 准 备 数 据 第 6 章 构 造 数 据 第 7 章 声 明 数 据 第 8 章 构 造
epub 63-3
3 Solaris S o l a r i s S o l a r i s 2 S o l a r i s s h e l l p a s s w d v i l s c a t p g m o r e r m 3.1 3.1.1 c p c p c o p y c p c p cp source-file destination-file s o u r c e - f i l e c p d e
P4i45GL_GV-R50-CN.p65
1 Main Advanced Security Power Boot Exit System Date System Time Floppy Drives IDE Devices BIOS Version Processor Type Processor Speed Cache Size Microcode Update Total Memory DDR1 DDR2 Dec 18 2003 Thu
PTS7_Manual.PDF
User Manual Soliton Technologies CO., LTD www.soliton.com.tw - PCI V2.2. - PCI 32-bit / 33MHz * 2 - Zero Skew CLK Signal Generator. - (each Slot). -. - PCI. - Hot-Swap - DOS, Windows 98/2000/XP, Linux
untitled
Unix Ka-Lok Ng () Department of Biological Sciences and Biotechnology() Taichung Healthcare and Management University (O) 04-23323456 x1856 3408 Teach the student how to use Linux system using TEXT mode
C/C++语言 - 分支结构
C/C++ Table of contents 1. if 2. if else 3. 4. 5. 6. continue break 7. switch 1 if if i // colddays.c: # include int main ( void ) { const int FREEZING = 0; float temperature ; int cold_ days
ebook70-14
Linux 1 4 1 5 1 6 1 7 1 8 1 9 S t a r O ff i c e 2 0 L i n u x 1 4 O p e n L i n u x O p e n L i n u x C D - R O M O p e n L i n u x C o r e l WordPerfect 8 for Linux S t a r D i v i s i o n S t a r O
GoFlex Home UG Book.book
FreeAgent GoFlex Home 用 户 指 南 FreeAgent GoFlex Home 用 户 指 南 2011 Seagate Technology LLC. 保 留 所 有 权 利 Seagate Seagate Technology Wave 徽 标 及 FreeAgent 是 Seagate Technology LLC 或 其 某 个 子 公 司 的 商 标 或 注 册 商
錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更
AX5000 Version 1.0 2006 年 9 錄...1 說...2 說...3...4 說...5 六...6 6.1 率...7 6.2 POST PAY...8 6.3 PREPAY DEPOSIT...9 6.4...10 6.5...11 更...12...12 LCD IC LED Flash 更 兩 RJ11 ( ) DC ON OFF ON 狀 狀 更 OFF 復 狀 說
292 shell shell C shell ~/.cshrc shell ~/.login ~/.logout ~/.history.cshrc shell shell /etc/passwd ~name NIS NIS+ * 0? [abc...] a-za-z0-9
C shell C shell C shell C shell C shell C shell Using csh & tcsh C shell 291 292 shell shell C shell ~/.cshrc shell ~/.login ~/.logout ~/.history.cshrc shell shell /etc/passwd ~name NIS NIS+ * 0? [abc...]
TX-NR3030_BAS_Cs_ indd
TX-NR3030 http://www.onkyo.com/manual/txnr3030/adv/cs.html Cs 1 2 3 Speaker Cable 2 HDMI OUT HDMI IN HDMI OUT HDMI OUT HDMI OUT HDMI OUT 1 DIGITAL OPTICAL OUT AUDIO OUT TV 3 1 5 4 6 1 2 3 3 2 2 4 3 2 5
WinMDI 28
WinMDI WinMDI 2 Region Gate Marker Quadrant Excel FACScan IBM-PC MO WinMDI WinMDI IBM-PC Dr. Joseph Trotter the Scripps Research Institute WinMDI HP PC WinMDI WinMDI PC MS WORD, PowerPoint, Excel, LOTUS
Perl
Perl 磊 Goal Introduction The first perl program Basical coding style Variable Data structure Control structure Regular expression Lab Reference Outline The first perl program Just type this following string
Microsoft Word - 97.01.30軟體設計第二部份範例試題_C++_ _1_.doc
電 腦 軟 體 設 計 乙 級 技 術 士 技 能 檢 定 術 科 測 試 範 例 試 題 (C++) 試 題 編 號 :11900-920201-4 審 定 日 期 : 94 年 7 月 1 日 修 訂 日 期 : 96 年 2 月 1 日 97 年 1 月 30 日 ( 第 二 部 份 ) 電 腦 軟 體 設 計 乙 級 技 術 士 技 能 檢 定 術 科 測 試 應 檢 參 考 資 料 壹 試
1.ai
HDMI camera ARTRAY CO,. LTD Introduction Thank you for purchasing the ARTCAM HDMI camera series. This manual shows the direction how to use the viewer software. Please refer other instructions or contact
FY.DOC
高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主
C/C++语言 - 运算符、表达式和语句
C/C++ Table of contents 1. 2. 3. 4. C C++ 5. 6. 7. 1 i // shoe1.c: # include # define ADJUST 7. 64 # define SCALE 0. 325 int main ( void ) { double shoe, foot ; shoe = 9. 0; foot = SCALE * shoe
Microsoft Word - template.doc
HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started
Windows XP
Windows XP What is Windows XP Windows is an Operating System An Operating System is the program that controls the hardware of your computer, and gives you an interface that allows you and other programs
C/C++程序设计 - 字符串与格式化输入/输出
C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int
untitled
說 參 例 邏 邏 1. 說 2. 數 數 3. 8 4. 理念 李 龍老 立 1. 理 料 2. 理 料 3. 數 料 4. 流 邏 念 5. 良 6. 讀 行 行 7. 行 例 來 邏 1. 說 說 識 量 2. 說 理 類 3. 數 數 念 4. 令 5. 良 6. 流 邏 念 7. 說 邏 理 力 1. 2. 3. 4. 5. 列 念 1 參 1. ( Visual Basic 例 ) (1)
技 巧 5: 避 免 除 以 0 的 運 算 在 做 除 的 運 算 時, 先 檢 查 除 數 的 數 值, 避 免 有 除 以 0 的 情 況 若 運 算 中 除 數 為 0,SAS 會 在 LOG 中 註 記 提 醒 並 將 運 算 結 果 設 定 為 遺 漏 值, 減 慢 程 式 的 執 行
提 升 SAS 效 率 的 小 技 巧 ( 二 ) 統 計 分 析 師 嚴 友 君 在 使 用 SAS 的 時 候, 效 率 的 考 量 除 了 程 式 運 行 的 時 間, 還 包 括 資 料 佔 用 的 空 間 暫 存 記 憶 體 的 使 用 量 程 式 的 長 度 與 易 讀 性 等 等 以 下 介 紹 一 些 初 學 者 容 易 應 用, 且 在 討 論 使 用 SAS 處 理 分 析 資
User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2
Terminal Mode No User User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Mon1 Cam-- Mon- Cam-- Prohibited M04 Mon1 Cam03 Mon1 Cam03
Windows RTEMS 1 Danilliu MMI TCP/IP QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos eco
Windows RTEMS 1 Danilliu MMI TCP/IP 80486 QEMU i386 QEMU ARM POWERPC i386 IPC PC104 uc/os-ii uc/os MMI TCP/IP i386 PORT Linux ecos Linux ecos ecos ecos Email www.rtems.com RTEMS ecos RTEMS RTEMS Windows
Microsoft Word - SupplyIT manual 3_cn_david.doc
MR PRICE Supply IT Lynette Rajiah 1 3 2 4 3 5 4 7 4.1 8 4.2 8 4.3 8 5 9 6 10 6.1 16 6.2 17 6.3 18 7 21 7.1 24 7.2 25 7.3 26 7.4 27 7.5 28 7.6 29 7.7 30 7.8 31 7.9 32 7.10 32 7.11 33 7.12 34 1 7.13 35 7.14
概述
OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3
Microsoft Word - OPIGIMAC 譯本.doc
OPISYSTEMS OPIGIMAC 系 統 使 用 說 明 使 用 者 手 冊 OPI 版 本 7.0.X 140705 翻 譯 版 本 V1.0 Table of Contents 頁 數 1. 簡 介 3 2. 系 統 需 求 4 3. 安 裝 4 4. 開 始 OPIGIMAC 5 5. 功 能 列 7 6. 功 能 圖 示 鍵 10 7. 重 點 操 作 說 明 13 7-1. 設 定
C/C++ - 文件IO
C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;
Microsoft Word - Final Exam Review Packet.docx
Do you know these words?... 3.1 3.5 Can you do the following?... Ask for and say the date. Use the adverbial of time correctly. Use Use to ask a tag question. Form a yes/no question with the verb / not
C/C++ - 字符串与字符串函数
C/C++ Table of contents 1. 2. 3. 4. 1 char C 2 char greeting [50] = " How " " are " " you?"; char greeting [50] = " How are you?"; 3 printf ("\" Ready, go!\" exclaimed John."); " Ready, go!" exclaimed
C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40
C C [email protected] C C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 Week3 C Week5 Week5 Memory & Pointer
Junos Pulse Mobile Security R1 2012, Juniper Networks, Inc.
Junos Pulse Mobile Security 4.0 2012 6 R1 2012, Juniper Networks, Inc. Junos Pulse Mobile Security Juniper Networks, Inc. 1194 North Mathilda Avenue Sunnyvale, California 94089 408-745-2000 www.juniper.net
教學計畫書
新 竹 縣 芎 林 鄉 五 龍 國 民 小 學 103 學 年 度 第 一 學 期 教 學 進 度 表 班 級 : 四 年 甲 班 科 目 : 國 語 授 課 教 師 : 曾 筱 婷 週 次 教 學 元 進 度 學 生 能 力 指 標 配 合 活 動 一 (0901~0906) 二 (0907~0913) 三 (0914~0920) 四 (0921~0927) 五 (0928~1004) 六 (1005~1011)
C/C++ 语言 - 循环
C/C++ Table of contents 7. 1. 2. while 3. 4. 5. for 6. 8. (do while) 9. 10. (nested loop) 11. 12. 13. 1 // summing.c: # include int main ( void ) { long num ; long sum = 0L; int status ; printf
, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1
21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414
ebook14-4
4 TINY LL(1) First F o l l o w t o p - d o w n 3 3. 3 backtracking parser predictive parser recursive-descent parsing L L ( 1 ) LL(1) parsing L L ( 1 ) L L ( 1 ) 1 L 2 L 1 L L ( k ) k L L ( 1 ) F i r s
CAUTION RISK OF ELECTRIC SHOCK DO NOT OPEN 2
WV-CU950/G WV-CU650/G CAUTION RISK OF ELECTRIC SHOCK DO NOT OPEN 2 S3125A 3 4 5 6 7 8 9 #9 $0 #8 $1 $2 $3 r q w e t $4 i u!0 y WV-CU950!1!3!4!7!6!5!8 @0!9 @3 @2 @1!2 o ALARM ACK ALM RESET ALM SUSPEND ALM
Lorem ipsum dolor sit amet, consectetuer adipiscing elit
English for Study in Australia 留 学 澳 洲 英 语 讲 座 Lesson 3: Make yourself at home 第 三 课 : 宾 至 如 归 L1 Male: 各 位 朋 友 好, 欢 迎 您 收 听 留 学 澳 洲 英 语 讲 座 节 目, 我 是 澳 大 利 亚 澳 洲 广 播 电 台 的 节 目 主 持 人 陈 昊 L1 Female: 各 位
Guide to Install SATA Hard Disks
SATA RAID 1. SATA. 2 1.1 SATA. 2 1.2 SATA 2 2. RAID (RAID 0 / RAID 1 / JBOD).. 4 2.1 RAID. 4 2.2 RAID 5 2.3 RAID 0 6 2.4 RAID 1.. 10 2.5 JBOD.. 16 3. Windows 2000 / Windows XP 20 1. SATA 1.1 SATA Serial
Cygwin & vim
Cygwin & vim Yu Hsiang Zheng (Slighten) Outline Shell Cygwin vim 1/21 What is a computer 2/21 What is a computer 拿 地 球 來 做 比 喻 的 話 kernel: 地 心 shell: 地 殼 application: 房 子 各 種 建 築 物 shell = command interpreter
Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2
Chapter 02 變數與運算式 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 2.2.3 type 2.2.4 2.3 2.3.1 print 2.3.2 input 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 + 2.4.6 Python Python 2.1 2.1.1 a p p l e b e a r c 65438790
Microsoft Word - 09.數學136-281.docx
136. 計 算 梯 型 面 積 (1 分 ) 請 以 JAVA 運 算 式 計 算 下 面 梯 形 面 積, 並 輸 出 面 積 結 果 梯 形 面 積 公 式 為 :( 上 底 + 下 底 ) 高 2 每 一 組 依 序 分 別 輸 入 梯 形 的 上 底 下 底 及 高 的 整 數 輸 出 梯 形 面 積 輸 入 輸 出 94 190 120 99 54 47 137. 計 算 三 角 形 面
els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8
els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8 Yamaha ELS-0/0C..8 LCD ELS-0/0C v. typeu LCD ELS-0/0C typeu / -6 / [SEARCH] / - ZH ELS-0/0C.8 els0xu_zh_nf_v8.book Page Wednesday, June,
C语言的应用.PDF
AVR C 9 1 AVR C IAR C, *.HEX, C,,! C, > 9.1 AVR C MCU,, AVR?! IAR AVR / IAR 32 ALU 1KBytes - 8MBytes (SPM ) 16 MBytes C C *var1, *var2; *var1++ = *--var2; AVR C 9 2 LD R16,-X ST Z+,R16 Auto (local
電腦做什麼事~第七章
Batteries included 1 built-ins #-*- coding: UTF-8 -*- from getpass import getpass data = {"kaiching":"0000"} def hello(name): " ", name, " " name = raw_input(" ") word = getpass(" ") if data.has_key(name):
Microsoft Word - 小心翼翼的二十一點N.doc
投 稿 類 別 : 資 訊 類 篇 名 : 小 心 翼 翼 的 二 十 一 點 作 者 : 陳 鈺 文 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 李 伯 謙 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 胡 家 媛 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 指 導 老 師 : 周 曉 玲 老 師 陳 思 亮 主 任 壹 前 言 一 研 究 動 機 平
IP505SM_manual_cn.doc
IP505SM 1 Introduction 1...4...4...4...5 LAN...5...5...6...6...7 LED...7...7 2...9...9...9 3...11...11...12...12...12...14...18 LAN...19 DHCP...20...21 4 PC...22...22 Windows...22 TCP/IP -...22 TCP/IP
ebook140-8
8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4
Microsoft Word - 01.DOC
第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的
PowerPoint 簡報
測 試 大 百 科 您 測 對 了 沒? 1 吳 尚 文 Sherry Wu [email protected] 經 歷 : 2013 資 拓 宏 宇 CMMI ML3 ATM 2012 資 拓 宏 宇 軟 體 委 外 事 業 處 經 理 ( 現 ) 2010 宏 瞻 資 訊 MIS 經 理 / ISO20000 資 服 代 表 2009 宏 瞻 資 訊 PM 部 門 經 理 2008
ebook65-5
5 P e r l P e r l I / O P e r l P e r l P e r l P e r l P e r l I / O P e r l P e r l 5.1 P e r l P e r ( ) S T D I N P e r l S T D I N 2 $ @ P e r l f o r e a c h e l s e i f P e r l p e r l f u n c o
プログラムの設計と実現II
UNIX C ls mkdir man http://www.tj.chiba-u.jp/lecture/prog2/ Ctrl+x, Ctrl+s ( )..[4]% gcc Wall o hoge hoge.c..[5]%./hoge 1 : 1 2 : 2 3 : 3 4 : 0 6..[6]% (! )..[4]% gcc Wall o hoge hoge.c..[5]%!g gcc Wall
