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.

 


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

Categories

Upcoming Training