Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 12:03
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
U.F.K. - unidentified flying keystroke | solved
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
mike


Joined: 13 Aug 2005
Posts: 75
Location: Bowser

PostPosted: Wed 17 Aug 2005, 01:28    Post_subject:  U.F.K. - unidentified flying keystroke | solved  

Embarassed

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:
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?)

Question

Edited_time_total
Back to top
View user's profile Send_private_message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Wed 17 Aug 2005, 01:47    Post_subject:  

Don't feel silly. Hold down the shift key and press the backslash "\". You should then see it.
Back to top
View user's profile Send_private_message 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Wed 17 Aug 2005, 01:47    Post_subject:  

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

Maybe on the same key as the backslash
Back to top
View user's profile Send_private_message 
mike


Joined: 13 Aug 2005
Posts: 75
Location: Bowser

PostPosted: Wed 17 Aug 2005, 02:01    Post_subject:  

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

thanks for your help dvw86 & Bruce B
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Wed 17 Aug 2005, 02:02    Post_subject:  

Pah I only learnt by making a complete fool of my self . . . Embarassed
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? Embarassed

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Bruce B


Joined: 18 May 2005
Posts: 11131
Location: The Peoples Republic of California

PostPosted: Wed 17 Aug 2005, 02:08    Post_subject: Use of set, pipe (|), grep, redirect (>) commands  

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$
Back to top
View user's profile Send_private_message 
mike


Joined: 13 Aug 2005
Posts: 75
Location: Bowser

PostPosted: Wed 17 Aug 2005, 02:26    Post_subject:  

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 Very Happy

cheers
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0576s ][ Queries: 12 (0.0067s) ][ GZIP on ]