Professional Documents
Culture Documents
Chapter-2 Special Tools Utilities Input Redirection - : Continuation................
Chapter-2 Special Tools Utilities Input Redirection - : Continuation................
Chapter-2 Special Tools Utilities Input Redirection - : Continuation................
CHAPTER-2
For example:
$ cat flowers
Rose
Lotus
Jasmine
Marigold
$ sort < flowers
Any command that produces output to stdout can be redirected to another file
For example:
$ who> who.out
$ ls> ls.out
'>' This command will create a new file if the file does not exist, or over file exists.
'>>' This command will create a new file if the file does not exist or appends file is already exists.