accessing awk program from another directory

Joined
May 2, 2013
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top