LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 03: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, 03:18 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
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, 03: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 03:34 PM.
 
Old 10-15-2004, 05:18 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:26 PM
what means "Error:junk 'string' after register" qqrilxk Programming 1 03-17-2005 03:58 PM
what does it means with..."too many argument to function..."? ams Programming 2 03-10-2005 01:49 AM
What does "signature" in source packages means b0nd Linux - Newbie 1 02-17-2005 01:25 AM
what means "no rules to build the target"? captainstorm Programming 4 07-03-2003 10:26 AM


All times are GMT -5. The time now is 05:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration