#!bin/bash
echo "请输入欲截取的字符串:"
read str
echo "请输入两个整型数:"
read m n
echo "this is a test of cuts program ($m $n)"
echo -n "test ( "
echo -n `expr substr "$str" $m $n`
echo " )"
#!bin/bash
echo "请输入欲截取的字符串:"
read str
echo "请输入两个整型数:"
read m n
echo "this is a test of cuts program ($m $n)"
echo -n "test ( "
echo -n `expr substr "$str" $m $n`
echo " )"