标签:
# cat ln-s.sh
#!/bin/bash
echo "请输入影片ID:"
read id
echo $id
echo "请输入范例ID:"
read copyid
echo $copyid
echo "请输入结束ID:"
read endsum
echo $endsum
target_tt_path=/data/sda/kk/tt
cd $target_tt_path/$id
for((i=$copyid;i<=$endsum;i++))
do
ln -s $id_$copyid.flv "$id"_"$i".flv--------------------------------------->注意这里;如果写成:$id_$i.flv的话,就只能显示$i了。
done
标签:
原文地址:http://www.cnblogs.com/taosim/p/4285267.html