Please help me to find out this problem solution
#!bin/bash
while read line; do
if [[ $line =~ "some thing match on line"]] ; then
echo "----> $line"
NAME=$(echo "$line" | awk '{print $2}' | cut -d"=" -f2)
PATH=$(echo "$line" | awk '{print $3}' | cut -d"=" -f2)
fi
done < "pattern.xml"
#output
##line 6: awk: command not found
##line 6: cut: command not found
why this command not execute inside while loop
Thanks in advance