![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UNIX newbie NEWBIE question! | Hanamachi | UNIX for Dummies Questions & Answers | 4 | 03-28-2009 04:10 PM |
| newbie question | xzyan | UNIX for Dummies Questions & Answers | 6 | 08-08-2006 10:22 AM |
| Newbie question | peeyush_23 | Shell Programming and Scripting | 9 | 02-18-2005 06:39 PM |
| Newbie Question... | flopper | UNIX for Dummies Questions & Answers | 4 | 11-27-2001 04:51 PM |
| newbie question | ninja | UNIX for Dummies Questions & Answers | 3 | 07-11-2001 04:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
while i am waiting other to help on my question, let me explain it to you !!
grep "hello" $myfile >> $log -----> all standard output will go into $log, except error which will output to your screen. for this reason,we use 2>&1 ----> so that (2)=all error will go into (1)=standard output which you have already define as $log so all output including error message wll all go into $log Anyway man page will explain in more detail.... |
|
||||
|
In unix 1 is defaut file descriptor for stdout and 2 is default file descriptor for stderr. So when you try redirecting on any of them you will redirect the stderr or stdout to a file or /dev/null.
regards Apoorva Kumar |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|