0

I want to use awk command to do something, I input awk in terminal, but the terminal show me that

awk: cannot open /home/user/myexe/external_symbols.awk (No such file or directory)

Someone tell to make an alias in your shell,but I would not ..,can someone help me..

Then I try to input :which -a awk

terminal show :/usr/bin/awk

input: type awk

terminal show: awk is aliased to 'awk -f /home/user/myexe/external_symbols.awk' How can i change the aliase which path?

0

1 Answer 1

3

Type unalias awk at the command line to remove the alias.

7
  • 1
    As said, unalias awk will work in the current terminal. Also check your ~/.bashrc file. Look for a line that sets the awk alias. You can remove that line.
    – Matt
    Jan 21, 2013 at 2:05
  • @Jake223 I remove the alias,then do I need to set something or without ?
    – choujayyl
    Jan 21, 2013 at 2:43
  • I don't understand your question. If you're asking about what Matt said, bring up a file called /home/yourusername/.bashrc in your favorite text editor and look for a line that stars with alias awk=.... delete that line. Jan 21, 2013 at 2:49
  • @Jake223 It work,but I don't understand why have to delete the alias of awk?Is it awk can't use alias?
    – choujayyl
    Jan 21, 2013 at 3:50
  • awk is a program you want to run, but when you type awk at the prompt, it looks first for aliases and then at programs that could be executed. So if there is an alias in place, it will prevent you from running the program. Jan 21, 2013 at 4:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .