indented_code_blocks_in_dokuwiki
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
indented_code_blocks_in_dokuwiki [2022/11/08 22:26] – ↷ Page name changed from indented_code_blocks to indented_code_blocks_in_dokuwiki raju | indented_code_blocks_in_dokuwiki [2022/11/24 22:29] (current) – [verify] raju | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Requirement ==== | ==== Requirement ==== | ||
- | How to indent | + | Indent |
==== Solution ==== | ==== Solution ==== | ||
Line 11: | Line 11: | ||
to / | to / | ||
- | ==== Demo code === | + | ==== Verify |
For example | For example | ||
Note that the order of redirections is significant. For example, the command | Note that the order of redirections is significant. For example, the command | ||
Line 17: | Line 17: | ||
ls > dirlist 2>&1 | ls > dirlist 2>&1 | ||
</ | </ | ||
- | directs both standard output (file descriptor 1) and standard error (file descriptor 2) to the file dirlist, while the command | + | directs both standard output (file descriptor 1) and standard error (file descriptor 2) |
+ | | ||
< | < | ||
ls 2>&1 > dirlist | ls 2>&1 > dirlist | ||
</ | </ | ||
- | directs only the standard output to file dirlist, because the standard error was made a copy of the standard output before the standard output was redirected to dirlist. | + | directs only the standard output to file dirlist, because the standard error was made a |
+ | | ||
will render as | will render as | ||
Line 29: | Line 31: | ||
ls > dirlist 2>&1 | ls > dirlist 2>&1 | ||
</ | </ | ||
- | directs both standard output (file descriptor 1) and standard error (file descriptor 2) to the file dirlist, while the command | + | directs both standard output (file descriptor 1) and standard error (file descriptor 2) |
+ | to the file dirlist, while the command | ||
< | < | ||
ls 2>&1 > dirlist | ls 2>&1 > dirlist | ||
</ | </ | ||
- | directs only the standard output to file dirlist, because the standard error was made a copy of the standard output before the standard output was redirected to dirlist. | + | directs only the standard output to file dirlist, because the standard error was made a |
+ | copy of the standard output before the standard output was redirected to dirlist. | ||
indented_code_blocks_in_dokuwiki.1667946401.txt.gz · Last modified: 2022/11/08 22:26 by raju