Results 1 to 4 of 4

Thread: grep displays usage help response for searches that should work

  1. #1
    Join Date
    Oct 2006
    Beans
    24

    Question grep displays usage help response for searches that should work

    I've used the follow commands before but they don't seem to work with 10.04 on my machine.

    Code:
    netstat -a | grep ftp
    Code:
    ps aux | grep someprocess
    The response is a page and a half of the correct usage.

    It works on my coworker's 10.04 setup. I'm not sure how to troubleshoot this problem.

    Thanks,
    graham

  2. #2
    Join Date
    Jul 2009
    Location
    London
    Beans
    1,480
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grep displays usage help response for searches that should work

    is your grep aliased to something ?

    in terminal, do:
    Code:
    type grep

  3. #3
    Join Date
    Oct 2006
    Beans
    24

    Re: grep displays usage help response for searches that should work

    Wow thanks! Here's the ouput:

    Code:
    user@user-laptop:/$ type grep
    grep is aliased to `grep --color=auto/usr/share/gnuh8300_v10.03_elf-1/bin'
    greitz@greitz-laptop:/$
    I had set up a tool chain using eclipse for a Hitachi micro a few weeks ago. Apparently it has set up some aliases in a rather undesirable way.

    Any ideas how I might be able to fix this and search for what other aliases have been created under the hood?

    I'm a little out of my element.

    Kindly and thanks!
    graham

  4. #4
    Join Date
    Jul 2009
    Location
    London
    Beans
    1,480
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: grep displays usage help response for searches that should work

    have a look in the .bashrc file in your home directory. other locations could include .profile or .bash_profile in your home dir, or /etc/profile, or /etc/bash.bashrc

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •