I'm trying to run some expect language, and grep/parse the output all in one script. I want to grep the output of and look for error (I should note that standard linux commands like awk, sed, grep, etc are not available on the remote VPlexcli machine)#!/bin/bashexpect - << EOF# connect to vplexclispawn vplexcli# Look for login promptexpect -re Name:# Send loginsend service\r# Look for password promptexpect -re Password:# Send passwordsend letmein123\rexpect -re VPlexcli:/> send ll /clusters/cluster-1/storage-elements/\rexpect -re VPlexcli:/> send exit\rEOFOutput looks like this:VPD83T3:6006016036c02c00e217465c0516e211  ok            APM00121002844.SPA  APM00121002844.SPB  both        0x002e000000000000  implicit-explicitVPD83T3:6006016036c02c00e4dc0671f907e211  ok            APM00121002844.SPA  APM00121002844.SPB  both        0x0010000000000000  implicit-explicitVPD83T3:6006016036c02c00ec79619bdd08e211  error         APM00121002844.SPA  APM00121002844.SPB  none                            implicit-explicitVPD83T3:6006016036c02c00f0bfd3dedd08e211  error         APM00121002844.SPA  APM00121002844.SPB  none                            implicit-explicit
grep output of expect script
bash;scripting;expect