linux-tutorial/codes/shell/示例脚本/输入和输出/抓取所有数据.sh

17 lines
223 B
Bash

#!/bin/bash
# testing $* and $@
count=1
for param in "$*"
do
echo "\$* Parameter #$count = $param"
count=$[ $count+1 ]
done
count=1
for param in "$@"
do
echo "\$@ Paramenter #$count = $param"
count=$[ $count+1 ]
done