LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2004, 02:11 PM   #1
shrrot
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
what's "<<" means..?


I know < operation is stdinput..

please explain << operation for example..

and all redirection operation... like 1>, 2>, >&1.. etc..
 
Old 10-15-2004, 02:18 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
All the answers are in :

man bash

example :
Here Documents
This type of redirection instructs the shell to read input
from the current source until a line containing only word
(with no trailing blanks) is seen. All of the lines read
up to that point are then used as the standard input for a
command.

The format of here-documents is:

<<[-]word
here-document
delimiter
 
Old 10-15-2004, 02:29 PM   #3
shrrot
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
thanks to Cedrik..

i find it bash man page...

but..

i don't know how to use...


Last edited by shrrot; 10-15-2004 at 02:34 PM.
 
Old 10-15-2004, 04:18 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Well, just read the man page. I'll get you started 2>foo means send all results on file descriptor 2 to the file called foo. In fact n>foo where n is some numbers means send results of file descriptor n to the file called foo. There are three file desctiptors you need to really care about, 0 is standard input, 1 is standard output, and 2 is standard error. 2>&1 means send the output of file descriptor 2 to the same place where 1's output is going ... simple, really, once you know a bit about it.
 
Old 10-15-2004, 08:01 PM   #5
shrrot
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for your kindness explanation..
your explanatin is helped me understand >, 2>, 2>&1...
but i want to know how to use << ..
i'm sorry my annoying question..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
what means "Error:junk 'string' after register" qqrilxk Programming 1 03-17-2005 02:58 PM
what does it means with..."too many argument to function..."? ams Programming 2 03-10-2005 12:49 AM
What does "signature" in source packages means b0nd Linux - Newbie 1 02-17-2005 12:25 AM
what means "no rules to build the target"? captainstorm Programming 4 07-03-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration