shell 读取配置文件

shell 读取配置文件来取参数的值. 在许许多多 自动化的脚本中,很学用.
#!/bin/sh
 filepath="/home/test/test.txt"
while read LINE
    do
     user=`echo $LINE | awk '{print $1}'`
     pwd=`echo $LINE | awk '{print $2}'`
  done <$filepath

猜你喜欢

转载自blog.csdn.net/cigogo/article/details/5097040