2009-06-15

Run command, not alias

To execute a command and not its alias there are some ways. I just figured the nicest out there.

Say grep is aliases to "grep --color -Hn". This can be annoying in case the output must be send through a pipe to another command because it always prints the source and the line number.

One way of avoiding the alias is to pass the full path, e.g. "/bin/grep". Another way is to quote the command e.g. "'grep'" and the quicker and nicest way is to put the two quotes before the command e.g. "''grep".

4 comments:

  1. try \grep

    ReplyDelete
    Replies
    1. I must say, nowadays that's way I prefer to use an unaliased \grep ;-)

      Delete
  2. Gracias. I didn't know that one.

    ReplyDelete
  3. Or type :
    command grep

    ReplyDelete