![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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. |