#!/bin/bash FILE=GXW4008_fxs1.txt HOST=fxs1 PASSWD=`echo \`cat $FILE | grep 'P2 = '\` | tr -d ' ' | tr -d 'P2='` reboot.sh $HOST $PASSWD