My grep commands are working but is there a better way to do this?
inputfile has
start3 start start123
start3 startuser changeme
start3 hello donut
start-id=$(grep start inputfile|grep -v startuser|grep -v hello|awk '{print $2}')
start-pass=$(grep start inputfile|grep -v startuser|grep -v hello|awk '{print $3}')
startuser-id=$(grep startuser inputfile|grep -v hello|awk '{print $2}')
startuser-pass=$(grep startuser inputfile|grep -v hello|awk '{print $3}')
inputfile has
start3 start start123
start3 startuser changeme
start3 hello donut
start-id=$(grep start inputfile|grep -v startuser|grep -v hello|awk '{print $2}')
start-pass=$(grep start inputfile|grep -v startuser|grep -v hello|awk '{print $3}')
startuser-id=$(grep startuser inputfile|grep -v hello|awk '{print $2}')
startuser-pass=$(grep startuser inputfile|grep -v hello|awk '{print $3}')