shell script question,standard input,output,error
Code:
echo "Redirect this STDOUT to STDERR" 1>&2 |
What happens when you run them?
Not on a Linux box ATM---so I can't try... |
A few quick experiments says that those commands don't make sense.
e.g. you can redirect to a file, or to another standard FD, but not both. So--add to my earlier question: What are the commands **supposed to** do? |
Which is the correct syntax?
Code:
cat b.c 2>&1 file1.txt Code:
cat b.c>file1 2>&1 |
The second one is correct!!
|
All times are GMT -5. The time now is 09:27 AM. |