Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/shell/ksh_hist5.1.html
Дата изменения: Fri Jan 17 12:43:22 1997 Дата индексирования: Tue Oct 2 01:52:18 2012 Кодировка: Поисковые слова: п п п п п п п п п п р п р п р п |
To list commands from the history list:
fc -l 27 34
This lists commands 27 through 34 from the history list. Using the -n option instead of -l prevents the history numbers from being listed.
To edit a command from the history list:
fc -e emacs 32
This will start the EMACS editor together with the contents of command number 32. You can then edit the command and exit the editor to run the command.
To edit several commands from the history list:
fc -e vi 27 35
This will start the vi editor and open a temporary file containing commands 27 through 35. You can then edit the commands and exit the editor to run the commands.