The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-19-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922

Code:
#!/bin/sh
while read line
do
  if [ "$line" -eq "Parameter Name : BATCHES_UPDATED" ]
  then
    read line
    echo "$line" | awk '{ print $3 }'
    exit 0
  fi
done

(Untested)

Usage: scriptname.sh < output.file