Redirecting Standard Input and Standard Output
Redirection is usually implemented by placing certain characters between commands. Typically, the syntax of these characters is as follows:
command1 > file1executes command1, placing the output in file1. This will clobber any existing data in file1.
To append output to the end of the file, use the >> operator:
command1 >> file1Using
command1 < file1executes command1, with file1 as the source of input (as opposed to the keyboard).
command1 < infile > outfilecombines the two capabilities: command1 reads from infile and writes to outfile
Read more about this topic: Redirection (computing)
Famous quotes containing the words standard, input and/or output:
“Error is a supposition that pleasure and pain, that intelligence, substance, life, are existent in matter. Error is neither Mind nor one of Minds faculties. Error is the contradiction of Truth. Error is a belief without understanding. Error is unreal because untrue. It is that which seemeth to be and is not. If error were true, its truth would be error, and we should have a self-evident absurditynamely, erroneous truth. Thus we should continue to lose the standard of Truth.”
—Mary Baker Eddy (18211910)
“Family life is not a computer program that runs on its own; it needs continual input from everyone.”
—Neil Kurshan (20th century)
“Lizzie Borden took an axe
And gave her mother forty whacks;
When she saw what she had done,
She gave her father forty-one.”
—Anonymous. Late 19th century ballad.
The quatrain refers to the famous case of Lizzie Borden, tried for the murder of her father and stepmother on Aug. 4, 1892, in Fall River, Massachusetts. Though she was found innocent, there were many who contested the verdict, occasioning a prodigious output of articles and books, including, most recently, Frank Spierings Lizzie (1985)