Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to type the keyboard character " | " ?

  1. #1
    Join Date
    Mar 2007
    Beans
    31

    How to type the keyboard character " | " ?

    How do i type this vertical bar shown between 'help' and 'more',in the example, "ls --help | more" and what is it called???

  2. #2
    Join Date
    Feb 2006
    Beans
    5,714

    Re: How to type the keyboard character " | " ?

    it's called the pipe (I think) and usually its above the enter key and you type it by holding down the shift key and press the \ | key
    Debian Testing(64bit) + XFCE4 AM2 5200+ ATI Radeon HD4350, 4gig RAM,320Gig and 750gig HDs

    what's the difference between an answer and a solution? An answer is what they want to hear, a solution is what they don't want to hear

  3. #3
    Join Date
    Oct 2005
    Location
    De Kwakel - Holland
    Beans
    3,657

    Re: How to type the keyboard character " | " ?

    Quote Originally Posted by halitech View Post
    it's called the pipe (I think) and usually its above the enter key and you type it by holding down the shift key and press the \ | key
    Yep..
    http://en.wikipedia.org/wiki/Pipe_%28character%29

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: How to type the keyboard character " | " ?

    On the system I'm using at the moment (a laptop) it's one key left of the 'z' key.
    Cheesemill

  5. #5
    Join Date
    Mar 2009
    Location
    Northern Alberta, Canada
    Beans
    109
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to type the keyboard character " | " ?

    Apparently my laptop has both: the one next to the Z, and the one above the "Enter". But to answer the OP's question, that is what's known as a "Capital Backslash", or "Upper Case Backslash", as typing 'Shift + \' will display |.

    But seriously, look at the people who already answered this post, and read the wikipedia link if you're still curious, they're absolutely the right answer.
    I'd rather have a bottle in front of me, than a frontal lobotomy!

  6. #6
    Join Date
    Nov 2008
    Location
    New York, New York
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to type the keyboard character " | " ?

    |

  7. #7
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,701

    Re: How to type the keyboard character " | " ?

    Quote Originally Posted by Captain_tux View Post
    |
    Oh, very droll.

    According to Character Map it's called VERTICAL LINE. It's actually on my keyboard in 2 places - Shift-\ (left of Z in a UK layout) and there's a key to the left of 1 with `, ¬ and | on it - hold AltGr while pressing this second key.

    If it's not available on your keyboard then you can get it by typing this four-key-sequence: Ctrl-Shift-U, 7, C, Enter. Alternatively, find it in Programs/Accessories/Character Map near the end of the Basic Latin block, double-click it to add it to the text field at the bottom, then copy and paste it where you need it.

  8. #8
    Join Date
    Oct 2008
    Location
    Chicago
    Beans
    755
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to type the keyboard character " | " ?

    The | character is called a pipe. It "pipes" the output of one thing to the input of another.

    The command: Code: ps aux | grep apt

    starts the program ps with the arguments a, u, and x. Ps lists the currently running processes on your system. This list is then "piped" to grep.

    Grep searches every line for a the sequence "apt" and returns a list of those lines. As there is no pipe telling where this list should go, it is displayed.

    I saved this post as something I could use someday. Is it still perfectly true?
    (I've never used it...) LOL
    ................................
    It's not so much about weathering the storm as it is about learning to dance in the rain.

  9. #9
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,701

    Re: How to type the keyboard character " | " ?

    Unixy folks often call it "pipe", but the Unicode standard calls it VERTICAL LINE (http://www.unicode.org/charts/PDF/U0000.pdf).

    I notice that the two symbols on my keyboard are '|' and '¦', but both actually produce the unbroken vertical line U007C when pressed.

    As there is no pipe telling where this list should go, it is displayed.
    The '|' symbol in a command redirects standard output to another process (so this second process thinks you are typing what the first process outputs) rather than letting it go to standard out (which normally goes to the terminal), so yes this is right. Note that while '|' pipes the output to the standard input of another process, the '>' symbol redirects the output to a file instead, so that will also prevent the output from appearing on the terminal.

  10. #10
    Join Date
    Mar 2007
    Beans
    31

    Re: How to type the keyboard character " | " ?

    Look Maw, I,m dancing |||||||! Thank you all. 50+ yrs old and Never saw this symbol before learning Ubuntu Linux.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •