Results 1 to 6 of 6

Thread: am I missing something here?

  1. #1
    Join Date
    Jun 2008
    Beans
    27

    Question am I missing something here?

    Okay so in all my researching on how I can use "the shell," I constantly come across mention of things called "pipes." What these "pipes" can do would be very useful. However - how in the world does one get them? How do you enter a pipe into the shell itself? I know it's not an upper case I nor is is a lower case l. I seriously am beginning to think I'm retarded or something because I see no possible way for these "pipes" to exist, and nothing will tell me! Please help...I am so confused...

  2. #2
    Join Date
    May 2006
    Location
    Wichita, Kansas
    Beans
    2,967
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: am I missing something here?

    On my keyboard, the pipe symbol, a vertical line, is the shifted \ key, located next to the ] key (to the right).

  3. #3
    Join Date
    Jun 2008
    Beans
    27

    Re: am I missing something here?

    |

    Now I do feel retarded...

    Dude thanks so much I was starting to have a panic attack.

  4. #4
    Join Date
    May 2006
    Location
    Wichita, Kansas
    Beans
    2,967
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: am I missing something here?

    No problem; we all started somewhere, right?

    BTW, if you would kindly mark this thread "solved" using the thread tools, it will save others time. TIA.

  5. #5
    Join Date
    Mar 2007
    Location
    A bit further from nearby
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: am I missing something here?

    The "pipe" command is doing exactly like its name: piping the output of one command to the next. The "|" symbol (located right above enter button in my keyboard or shift+\ ) is pipe.

    I'll give an example. Suppose I want to list the content of my Wallpapers folder but only want to limit the output of the files that has "me" in their names. This is how I do it:

    Code:
    ls | grep me
    and the results:

    Code:
    # ls | grep me
    co2metal-1160343866.jpg
    Gnome
    meiji_taisho_wallpaper_by_alxboss.jpg
    metal-stripes-graphite.png
    metal-stripes.png
    metal-stripes-warm.png
    metrotunnels_1280x960.jpg
    overtime_1280x960.jpg
    phenomenon_by_aiRaGe.jpg

  6. #6
    Join Date
    Nov 2007
    Beans
    706
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: am I missing something here?

    That damn pipe always made me mad, too. On the keyboard, it looks like a broken pipe, so I was never able to find it.
    Programming is an art. Learn it. Live it. Love it.

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
  •