Script 源代码
脚本(Script),是使用一种特定的描述性语言,依据一定的格式编写的可执行文件。[1]
#!/bin/bash typeset -i m2 m1 M n2 n1 N m n typeset -i MM=5 NN=5 case $# in 0) : ;; 1) MM=$1; NN=$1 ;; 2) MM=$1; NN=$2 …
upolu % ./tcprecv03 7777 revents = 1 read 3 bytes: 123, flags = 0 revents = 1 read 1 bytes: 4, flags = T_EXPEDITED revents = 1 rea…
upolu % ./tcprecv04 9999 revents = 1 read 3 bytes: 123, flags = 0 revents = 1 read 1 bytes: 4, flags = T_EXPEDITED reven…
upolu % ./tcprecv01 9999 read 3 bytes: 123, flags = 0 SIGPOLL received, event = T_EXDATA read 1 bytes: 4, flags = T_EXPEDITED SIGP…
upolu % ./tcprecv02 8888 read 1 bytes: 1, flags = T_MORE read 1 bytes: 2, flags = T_MORE read 1 bytes: 3, flags = 0 SIGPOLL receiv…
#!/bin/bash typeset -i m2 m1 M n2 n1 N m n typeset -i MM=5 NN=5 case $# in 0) : ;; 1) MM=$1; NN=$1 ;; 2) MM=$1; NN=$2 …
#!/bin/bash # script-array.sh: Loads this script into an array. # Inspired by an e-mail from Chris Martin (thanks!). script_conte…
#!/bin/bash # script-detector.sh: Detects scripts within a directory. TESTCHARS=2 # Test first 2 characters. SHABANG='#!' # …