Talk:Redirection (computing)
![]() | Computing Unassessed | |||||||||
|
Hoinkies
I don't see any evidence that this is common in computing. http://en.wikipedia.org/wiki/Talk:Bracket#Hoinkies Salvar (talk) 18:39, 23 March 2009 (UTC)
[1]== Test Program == You can test all kind of redirection with this little shell script:
{| * |- * ! Header text !! Header text * |- * | Example || Example * |- * | Example || Example * |- * | Example || Example * * Bulleted list item # Numbered list item± # Numbered list item |} #!/bin/bash echo "This is stdout." echo "This is stderr." >&2<big><small>Big text</small><sup><sub>Superscript text</sub> <gallery> <gallery> Example.jpg|Caption1 Example.jpg|Caption2 </gallery> <gallery> Example.jpg~~~~|Caption1 Example.jpg|Caption2 </gallery> </gallery> </sup></big>
--2A02:27B0:4309:33E0:60BF:9386:9582:2BFD (talk) 16:43, 3 November 2014 (UTC)--2A02:27B0:4309:33E0:60BF:9386:9582:2BFD (talk) 16:43, 3 November 2014 (UTC)Italic textBold text<br />
Insert non-formatted text here<nowiki><nowiki>Insert non-formatted text hereInsert non-formatted text here</nowiki></nowiki>
piping
Is piping redirection? DG12 (talk) 17:01, 14 November 2011 (UTC)
- Yes it is. Output from the first program is no longer going to the terminal, and input from the second program no longer comes from the terminal. —EncMstr (talk) 17:14, 14 November 2011 (UTC)
Bad analogue, someone with good English skills should rewrite
In the article
command1 | command2
was said to be equal to
command1 > tempfile
command2 < tempfile
rm tempfile
which it isn't, since the commands are executed in different subshells when a pipe is used, which means that the commands is usually executed in parallel and there is usually no temporary files created (or swap space used), just a file handle and a (usually) tiny buffer. Piping usually use much less memory then creating a temporary file and is faster. I'm guessing this is an old DOSism (in early MS/PC DOS was the given analogue correct). I'm not good enough with English to provide a better explanation, so I have only changed the wording from the two examples being "equal" to being "similar". But the analogue is still bad and might confuse someone. — Preceding unsigned comment added by Se mj (talk • contribs) 23:10, 1 December 2011 (UTC)