U.F.K. - unidentified flying keystroke | solved

Booting, installing, newbie
Post Reply
Message
Author
User avatar
mike
Posts: 75
Joined: Sat 13 Aug 2005, 17:25
Location: Bowser

U.F.K. - unidentified flying keystroke | solved

#1 Post by mike »

:oops:

i feel real silly, but there's been something really bothering me lately.

my present computer is the only computer i've ever spent any real time on, being relatively new to this whole technology thing

well...

here goes

Code: Select all

set | grep <regexp>
now, you notice that symbol after the set, but before the grep? what in the name of hell is that? I've examined my keyboard (with both eyes open, and i'm dead sober!) numerous time, and I can't seem to find this symbol anywhere. I'm finding reference to this symbol all over the internet, and it's kind of effecting my abaility to learn commands.

if someone could please email me a copy, that would be wonderfull.
(No, really, I don't have that symbol! is anyone else missing it?)

:?:
Last edited by mike on Wed 17 Aug 2005, 06:05, edited 1 time in total.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#2 Post by dvw86 »

Don't feel silly. Hold down the shift key and press the backslash "\". You should then see it.

Bruce B

#3 Post by Bruce B »

It's a pipe Mike. That's what I call it a pipe.

Maybe on the same key as the backslash

User avatar
mike
Posts: 75
Joined: Sat 13 Aug 2005, 17:25
Location: Bowser

#4 Post by mike »

well, i do feel silly, but now at least I know, lol.

thanks for your help dvw86 & Bruce B

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

Pah I only learnt by making a complete fool of my self . . . :oops:
for example

Isn't a double ||

used as a rem statement in bash?
and
# at the beginning of a line?

rem = REM or remark (part of a program not run)

for example */ not run in C */
' do not run this line in some basics
REM Not run this line in olde type Basics
\\ Not run in Curl
(not run in RosASM - assembler)
<-- Not run in HTML -->

LOL and I can not remember how it is done in Pascal or Tcl?

Wonder if I got any of that right? :oops:
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Bruce B

Use of set, pipe (|), grep, redirect (>) commands

#6 Post by Bruce B »

Mike it is simple to explain and imperative that you understand what a pipe is.

--------------

# set

outputs to the screen contents of your environment, bash aliaes and etc.

# set |

tells the system to pipe the output somewhere else and not to standandard output which is your monitor

# set | grep

instructs to send the output of set to the command grep. this make set the input for grep

# set | grep <regexpr>

is saying that you need to fill in content of <regexpr>

--------

Now practice:

# set

note the output of set

# set | grep LOGNAME

will display only the lines that have the uppercase string LOGNAME in it

# set | grep EDITOR

will display only the lines that have the uppercase string EDITOR in it

-----------------

Might as well bring up redirect at this point.

# set | grep EDITOR>editor$

this will direct the previous command to output by redirection to a file.

when you run the command you won't see a thing because standard output has been instructed to output to a file.

To view the contents of the newly created file as standard output, do this

# cat editor$

The $ doesn't mean anything, I used it because the > redirect will overwrite an existing file if the name is the same. Chances are you don't have a file called editor$ so it is safe bet it won't damage things by an overwrite.

Then remove the file

# rm editor$

User avatar
mike
Posts: 75
Joined: Sat 13 Aug 2005, 17:25
Location: Bowser

#7 Post by mike »

Bruce B, thanks alot for that. i'm slowly and painfully working my way through the wonderfull rute guide http://www.icon.co.za/~psheer/book/index.html.gz that i was pointed to in the sticky -

great excercises in there,

and i find that i'm learning a lot here in the puppy forums as well - as my experience level increases, the more I realize what a wealth of information is stored here in the kennels :D

cheers

Post Reply