Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/shell/ksh_hist3.1.html
Дата изменения: Fri Jan 17 12:43:21 1997
Дата индексирования: Tue Oct 2 01:52:01 2012
Кодировка:
Examples of running a command from the history list

Examples of running a command from the history list

To run the previous command:

   pwd
   /u/user/eucs/joe
   r
   pwd
   /u/user/eucs/joe

To re-run a command from the history list:

   r 15

This re-runs command number fifteen from the history list.


To re-run the most recent command that starts with a particular string:

   r grep
   grep -n '[dD]on't' tasks \ less

This re-runs the most recent command that starts with the string grep.


[Home] [Search] [Index]