The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Regarding redirection using cat. marconi UNIX for Dummies Questions & Answers 2 08-21-2008 05:02 AM
password required when using input redirection Alalush UNIX for Advanced & Expert Users 2 08-19-2008 08:28 AM
Script required to get a required info from file. Pls. help me. ntgobinath Shell Programming and Scripting 2 05-31-2008 08:34 AM
redirection DNAx86 Shell Programming and Scripting 9 04-18-2008 02:24 PM
sed redirection myle UNIX for Dummies Questions & Answers 3 03-12-2008 07:04 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2008
marconi marconi is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 41
Redirection related clarifications required...

There are two files named goody and good. Please look at their single line contents:-
$ cat goody
hi m goody
$ cat good
hi m good

1)
$ cat goody < good
hi m goody

When we give cat, a file to read from, standard input is ignored.
As such, the above operation will just display contents of goody.


2)
$ cat > goody < good
$ cat goody
hi m good
$ cat good
hi m good

What will be the output of the above command ? I think the command takes input from file good and then overwrites in goody and prints on terminal screen.

3) Whats the difference between a) cat goody >>= good and b) cat goody >> good

4) Whats the difference between a) cat goody >= good and b) cat goody > good

5) Whats the difference between cat < good and cat << good


Thanks a lot in advance.

Best Regards,
Marconi.
  #2 (permalink)  
Old 08-21-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,382
do we have anything called <<= and >>=..
i am not able to recall...
  #3 (permalink)  
Old 08-21-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Redirection (Unix) - Wikipedia, the free encyclopedia

Good redirection help.

- nilesh
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0