I am new to bash scripting. I am trying to run the following script :
#! /bin/bash
#the following command runs fine within the bash script
awk>/home/Bash_Scripts/filename1 -F, '$3!="constant"{print}' /home/Bash_Scripts/logs.csv
# THE FOLLOWING COMMAND WORKS FINE FROM COMMAND LINE BUT NOT FROM WITHIN BASH SCRIPT
/usr/bin/awk -f /home/Bash_Scripts/process.awk /home/Bash_Scripts/filename1
Can someone please explain why? Both are awk commands. One works only from commandline and not from within the bash script.
Thanks in advance.
/home/Bash_Scripts/process.awk