티스토리 뷰

Redirection reroutes standard input, standard output, and standard error.

 

The common redirection commands are:

 

 

 

> redirects standard output of a command to a file, overwriting previous content.

 

>> redirects standard output of a command to a file, appending new content to old content.

 

< redirects standard input to a command.

 

| redirects standard output of a command to another command.

 

A number of other commands are powerful when combined with redirection commands:

 

 

 

sort: sorts lines of text alphabetically.

 

uniq: filters duplicate, adjacent lines of text.

 

grep: searches for a text pattern and outputs it.

 

sed : searches for a text pattern, modifies it, and outputs it.

 

'AU Study > TAFE' 카테고리의 다른 글

tue w11 morning  (0) 2017.10.22
git first  (0) 2017.10.22
w10 tue morning  (0) 2017.09.25
w9 fri morning  (0) 2017.09.25
w9 wed afternoon  (0) 2017.09.25
댓글
Announcement
Recent Posts
Recent Comments
Total
Today
Yesterday
Link
TAG
more
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Search by month