标签:[1] ash while rom filename name cheat sheet set
#!/bin/bash
filename="$1"
while read -r line || [[ -n "$line" ]]
do
name="$line"
echo "Name read from file - $name"
done < "$filename"
echo $name
arr_name=(${name//|/ })
echo ${arr_name[1]}
set level = ${arr_name[1]}
echo $level
if [ $level -gt 100 ]
then
echo "yes"
fi
标签:[1] ash while rom filename name cheat sheet set
原文地址:http://www.cnblogs.com/fuxiaotong/p/6950885.html