an easy one

donkey42

plank
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"
 
Oh yeah, I can only get `¬.

Is this the same as you want? |
Thats shift-backslash, next to z.
 
zeus said:
Oh yeah, I can only get `¬.

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

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

BTW: do you know what its called, hopefully somebody will
 
kenji san said:
It's called a pipe [ | ]
: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
 
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!
 
mega said:
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!
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]
 
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
 
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."
}
?>
 
Matt555 said:
meaning "or"
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
Addis said:
apt-cache search foo | grep bar
presumably (from your example)
  • "foo" = search string
  • "grep" = search for preceding text
  • "bar" = output of: current window
 
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.
 
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.
 
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?!
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
 
Back
Top