02.04.2015 Views

WFDB Applications Guide - PhysioNet

WFDB Applications Guide - PhysioNet

WFDB Applications Guide - PhysioNet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FAQ <strong>WFDB</strong> <strong>Applications</strong> <strong>Guide</strong> FAQ<br />

How can I save the output of ... in a file?<br />

How can one program read another’s output?<br />

If you are running programs from a command prompt (by typing commands into a terminal emulator window or an<br />

MS-DOS box), these things can be done easily.<br />

If you have ever used GNU/Linux, Unix, or MS-DOS, you may have captured the output of a program by<br />

redirecting it to a file, like this:<br />

foo >bar<br />

The > operator redirects foo’s standard output (which would normally appear on-screen) into a file named bar.<br />

If bar exists already, its contents are replaced. If you wish to append foo’s output to whatever is already contained<br />

in bar, use a command such as this instead:<br />

foo >>bar<br />

There is an analogous operator that arranges for a program’s standard input (which would normally be read from<br />

whatever you type on the keyboard) to be read from a file instead:<br />

baz , >>,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!