分类: LINUX
2009-10-12 23:46:23
test_num.sh
#!/bin/sh
file_size=128input_num="$(echo "$1" | sed -n "/^[0-9]\+$/p")"if [ -n "$input_num" ];thenecho "Input is the number!"file_size="$1"echo "file_size = $file_size"elseecho "Input isn't the number!"echo "Use defaule size $file_size."fi |