Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/commanz/cmd3.2.html
Дата изменения: Fri Jan 17 12:43:13 1997 Дата индексирования: Mon Oct 1 23:56:05 2012 Кодировка: Поисковые слова: m 87 jet |
To redirect the standard output from a command use the > (greater than) symbol followed by the name of the output file. If the file that you redirect standard output to does not already exist it will be created. For example:
grep Smith /etc/passwd > popular
This redirects the standard output from the grep command so that it goes to the file popular. This file will contain all occurrences of the string Smith that were found in the /etc/passwd file.