A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

July 4, 2016

AWK formatting in bash script

Hi I am new in shell scripting ,
and i am trying to get how some script works in bash shell script.
Please explain it to me.
 

mkfifo /tmp/pipe$DATT
cat /etc/oratab | awk 'BEGIN {FS=":"}; $0 !~ /^#/ && $3 ~ /^y|^Y/' > /tmp/pipe$DATT & 
while read line
do

    ret1=0
    ret2=0
    NAME=`echo $line | awk -F: '{print $1}'`
    DBHOME=`echo $line | awk -F: '{print $2}' | awk -F: '{print $1}'`
    Get_WorkDir
    .....
done </tmp/pipe$DATT
Click Here!