Skip to contentSkip to conversation

How to merge stdout and stderr

DISCUSSION Jeffrey Holle 2 participants 2 messages Sep 29, 2007 – Sep 30, 2007

lore
Share & tools
lore
#0 lore raw

I'm using bash on Ubuntu Linux.

I've forgotten the syntax on how to do this:
rcsdiff somefile 1&2> result

Can somebody tell me how to do this?

#1 lore raw
Quoted 6 lines · Jeffrey Holle

I'm using bash on Ubuntu Linux.

I've forgotten the syntax on how to do this:
rcsdiff somefile 1&2> result

Can somebody tell me how to do this?

depends on what you want to do.

redirect sterr to stdin:
try 2>&1

redirect stin to sterr:
try 1>&2

hth
florian

Signature · 4 lines
Florian Klien
student of Telematics
"Facts are meaningless. You could use facts to prove anything
 that's even remotely true!", Homer Simpson