Your SlideShare is downloading. ×
Linux/Unix     &
       -

             2010, Spring
• 0-   - STDIN
• 1-   - STDOUT
• 2-   - STDERR
STDIN#0

           Program

STDOUT#1             STDERR#2
STDOUT
          STDERR


STDOUT=

STDERR=
Redirection


• 1>
• 2>
•<         STDIN(input)
•   nl-

•   cat    tac-     STDIN   STDOUT

•   head    tail-

•   more    less-

•   cut-

•   wc-

•   uniq-

•   sort-...
Upcoming SlideShare
Loading in...5
×

Linux pipe & redirection

803

Published on

政大應數數理資訊人才培訓

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
803
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Linux pipe & redirection"

  1. 1. Linux/Unix & - 2010, Spring
  2. 2. • 0- - STDIN • 1- - STDOUT • 2- - STDERR
  3. 3. STDIN#0 Program STDOUT#1 STDERR#2
  4. 4. STDOUT STDERR STDOUT= STDERR=
  5. 5. Redirection • 1> • 2> •< STDIN(input)
  6. 6. • nl- • cat tac- STDIN STDOUT • head tail- • more less- • cut- • wc- • uniq- • sort- • grep-

×