Hi,
i would like to put several awk program scripts into a local directory, then set the environment variable in a search path in my .bash_profile. however, when i try to run one of the awk scripts from a directory other than where that awk is stored, or giving the full path to that awk script, the command is not found. can anyone tell me how to set this up so i can run an awk program script from one directory when the awk program script is in another directory, or if additional options or another command is necessary?
i.e. correct.awk put in /work/utilities/awks
.bash_profile search path includes /work/utilities/awks
command: awk -f correct.awk < veg.def> new.def
however, error says 'can't open file correct.awk
thank you,
janetc
i would like to put several awk program scripts into a local directory, then set the environment variable in a search path in my .bash_profile. however, when i try to run one of the awk scripts from a directory other than where that awk is stored, or giving the full path to that awk script, the command is not found. can anyone tell me how to set this up so i can run an awk program script from one directory when the awk program script is in another directory, or if additional options or another command is necessary?
i.e. correct.awk put in /work/utilities/awks
.bash_profile search path includes /work/utilities/awks
command: awk -f correct.awk < veg.def> new.def
however, error says 'can't open file correct.awk
thank you,
janetc