an easy one

Discussion in 'Linux, BSD and Other OS's' started by donkey42, Aug 27, 2007.

  1. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    on my UK qwerty keyboard, how do i type the long-ish straight line

    it is between the tab & Esc keys, it also produces ` & ¬, but what keystroke produces the line

    BTW: i don't even know what it is called, so, i can't google for it, although i'll try googling for "key listings"
     
  2. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    Oh yeah, I can only get `¬.

    Is this the same as you want? |
    Thats shift-backslash, next to z.
     
  3. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    thankies,

    BTW:<shift> + <\> shows two short lines, weird,

    BTW: do you know what its called, hopefully somebody will
     
  4. kenji san

    kenji san Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    It's called a pipe [ | ]
     
  5. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    :beer: thanks, i feel like a plank asking this, but as you guys know, I'm not scared to ask what i don't know, i'm always learning

    i was remastering a LiveCD (kubuntu Feisty) & i'll probably post instructions when i've done it

    BTW: thankies

    Edit: bookmarked & saved for life thanks to foxmarks
     
  6. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    I always thought the key between the tab and escape keys provided that function but I could never get it to work obviously! How stupid of me not to notice the pipe key on the \ key!
     
  7. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    me too, as there is a line on that key, i thought maybe <Alt> or <Ctrl> + <`>, but neither combination of keys worked & i tried loads of key combos

    so, with some things we're as stupid as each other & we can both have a laugh, although i find it difficult to be serious (as you know) but i am calming down in my old age[ot]sometimes[/ot]
     
  8. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    I use the pipe most of the time to text-search output from a program with grep. E.g.
    apt-cache search foo | grep bar
     
  9. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    Yeah the pipe is used in lots of coding languages too - meaning "or"
    PHP:
    <?php
    $name 
    "Matt";
    if (
    $name == "Matt" || $name == "Frankenstein"// if $name is equal to "Matt" OR "Frankenstein" then...
    {
         echo 
    "Weirdo."// display "Weirdo."
    }
    else 
    // otherwise
    {
         echo 
    "Normal?  Doubt it."// display "Normal? Doubt it."
    }
    ?>
     
  10. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    sorry, i may have crossed a knowledgeable line, but, i understand that, although i couldn't have written it & i've never got around to programming

    BTW: it could be the because of reading & understanding the output of konsole
    presumably (from your example)
    • "foo" = search string
    • "grep" = search for preceding text
    • "bar" = output of: current window
     
  11. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    foo is a search string for apt-cache, but bar is the text to search for in the output of apt-cache.
    e.g. apt-cache search game | grep penguin
    The output of apt-cache is searched with the text penguin.
     
  12. zeus

    zeus out of date

    Likes Received:
    0
    Trophy Points:
    36
    Its alt gr to get that key working.
    Its all on wiki.

    If you alt-gr and press the key next to the 1 its a pipe in linux and os2 but its a broken bar in windows. (havent checked that)
    If you shift the key next to z its a pipe in linux and windows and a broken bar in os2.

    Why the hell have windows reversed the keys?! And you simply cant get a broken bar in linux? Of course there will be a way but I would have thought the keyboard would have been set out properly by now!

    Just over 1/3 of the way down.....
    Keyboard layout - Wikipedia, the free encyclopedia

    Apparently the name "pipe" comes from Unix and its normally called a vertical bar. It should be a vertical dash really. I bet americans call a dash a bar?! God knows what the broken vertical bar is for? I remember seeing the vertical bar in that linux from scratch book and used it all the time in maths but have never seen a broken vertical bar.
     
  13. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    here comes the argument starter
    yeah, Americans always butcher the English language, like they invented it, :doh:
     
  14. kenji san

    kenji san Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    This is a bar (also an underscore):
    Code:
    _
    So this is a vertical bar (or pipe):
    Code:
    |
    I suppose we could call the bar (_) a horizontal pipe? :p
     

Share This Page