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:
“This unlettered mans speaking and writing are standard English. Some words and phrases deemed vulgarisms and Americanisms before, he has made standard American; such as It will pay. It suggests that the one great rule of compositionand if I were a professor of rhetoric I should insist on thisis, to speak the truth. This first, this second, this third; pebbles in your mouth or not. This demands earnestness and manhood chiefly.”
—Henry David Thoreau (18171862)
“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)