Results 1 to 5 of 5

Thread: how can I find wc command's source code?

  1. #1
    Join Date
    Jun 2006
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    how can I find wc command's source code?

    I want to view wc command's source code, how can I find the source?


  2. #2
    Join Date
    Jun 2006
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: how can I find wc command's source code?

    somebody know it?

  3. #3
    Join Date
    Feb 2005
    Location
    Holland
    Beans
    111

    Re: how can I find wc command's source code?

    Check the source of GNU's coreutils: http://www.gnu.org/software/coreutils/

  4. #4
    Join Date
    May 2006
    Location
    Netherlands
    Beans
    561
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: how can I find wc command's source code?

    The Debian/Ubuntu way of doing this:
    - Find the executable.
    - Find the package.
    - Cd into a directory.
    - Download the source directly.

    Code:
      14:26:47 ifokkema@5-HKG-02-0098:~$ which wc
    /usr/bin/wc
      14:26:56 ifokkema@5-HKG-02-0098:~$ dpkg -S /usr/bin/wc
    coreutils: /usr/bin/wc
      14:27:12 ifokkema@5-HKG-02-0098:~$ cd src
      14:27:25 ifokkema@5-HKG-02-0098:src$ sudo apt-get source coreutils
    If you get:
    Code:
    E: You must put some 'source' URIs in your sources.list
    Then you must enable the deb-src lines in your /etc/apt/sources.list file.

    HTH
    (\ /)
    (O.o)
    (> <)

    This is Bunny. Copy Bunny into your signature to help him on his way to world domination.

  5. #5
    Join Date
    Jun 2006
    Beans
    17
    Distro
    Ubuntu 9.10 Karmic Koala

    Smile Re: how can I find wc command's source code?

    Hi, ifokkema,
    Very nice.

    Thank you for you help!

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
  •