Welcome to the Linux Foundation Forum!

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.

 


  1. 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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training